gh auth login
gh auth login [flags]
Authenticate with a GitHub host.
The default authentication mode is a web-based browser flow.
Alternatively, pass in a token on standard input by using
The minimum required scopes for the token are: "repo", "read:org".
The --scopes flag accepts a comma separated list of scopes you want your gh credentials to have. If absent, this command ensures that gh has access to a minimum set of scopes.
- The hostname of the GitHub instance to authenticate with
- Additional authentication scopes for gh to have
- Open a browser to authenticate
- Read token from standard input