gh-auth: add refresh examples (#5306)

translation-badges
Axel Navarro 2021-02-24 10:11:22 -03:00 committed by GitHub
parent 1b008c21d3
commit d9a692b950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -22,3 +22,11 @@
- Login with a specific GitHub Enterprise Server:
`gh auth login --hostname {{github.example.com}}`
- Refresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously):
`gh auth refresh`
- Expand the permission scopes:
`gh auth refresh --scopes {{write:org,read:public_key}}`