cli/cli

Allow to pass token

dcodesdev opened this issue · 2 comments

Allow to pass an authorization token whenever a command is run without the need for logging in using gh login, for example, if I run gh release download v1.2.3 --token <token> it should be able to authorize and download the release from the private GitHub repository.

You can set GH_TOKEN or GITHUB_TOKEN env vars. You can read more about the supported env vars in gh environment.

Thank you, that was helpful.