Forrest logo
back to context overview

gh-auth

List of commands for gh-auth:

  • gh-auth:tldr:11384 gh-auth: Log out.
    $ gh auth logout
    try on your machine
    explain this command
  • gh-auth:tldr:65465 gh-auth: Log in with a token from standard input (created in https://github.com/settings/tokens).
    $ echo ${your_token} | gh auth login --with-token
    try on your machine
    explain this command
  • gh-auth:tldr:6b9a4 gh-auth: Refresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously).
    $ gh auth refresh
    try on your machine
    explain this command
  • gh-auth:tldr:ccda9 gh-auth: Expand the permission scopes.
    $ gh auth refresh --scopes ${repo,admin:repo_hook,admin:org,admin:public_key,admin:org_hook,---}
    try on your machine
    explain this command
  • gh-auth:tldr:fb833 gh-auth: Log in with interactive prompt.
    $ gh auth login
    try on your machine
    explain this command
  • gh-auth:tldr:ffacf gh-auth: Log in with a specific GitHub Enterprise Server.
    $ gh auth login --hostname ${github-example-com}
    try on your machine
    explain this command
back to context overview