OAuth2 has support for installed apps as it allows you to obtain tokens without a consumer secret, which is very useful for both installed apps/programs as well as SPAs. Wikibase-cli could maybe use OAuth2 so all someone has to do is click the link and authorize it.