gh auth refresh
gh auth refresh [flags]
Expand or fix the permission scopes for stored credentials.
The --scopes flag accepts a comma separated list of scopes you want your gh credentials to have. If no scopes are provided, the command maintains previously added scopes.
The command can only add additional scopes, but not remove previously added ones. To reset scopes to the default minimum set of scopes, you will need to create new credentials using the auth login command.
- The GitHub host to use for authentication
- Save authentication credentials in plain text instead of credential store
- Additional authentication scopes for gh to have