Options (2)
-h, --hostnamebooleanLog in with a specific GitHub Enterprise Server
Example:
gh auth login {{[-h|--hostname]}} {{github.example.com}}-s, --scopesbooleanExpand the permission scopes
Example:
gh auth refresh {{[-s|--scopes]}} {{repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,...}}Examples (7)
Log in with a token from `stdin` (created in <https://github.com/settings/tokens>)
Check if you are logged in
gh auth statusRefresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously)
gh auth refreshExpand the permission scopes
gh auth refresh [-s|--scopes] repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,...made by @shridhargupta | data from tldr-pages