gh-auth-refresh
Refresh stored authentication credentials
- Provided by: gh (Version: 2.4.0+dfsg1-2)
- Report a bug
Refresh stored authentication credentials
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 absent, this command ensures that gh has access to a minimum set of scopes.
$ gh auth refresh --scopes write:org,read:public_key # => open a browser to add write:org and read:public_key scopes for use with gh api $ gh auth refresh # => open a browser to ensure your authentication credentials have the correct minimum scopes