Enter a command. For example: git delete merged branches.

gh auth

Authenticate with a GitHub host from the command-line. More information:
  • Log in with interactive prompt:
    gh auth login
  • Log in with a token from standard input (created in
    echo {{your_token}} | gh auth login --with-token
  • Check if you are logged in:
    gh auth status
  • Log out:
    gh auth logout
  • Log in with a specific GitHub Enterprise Server:
    gh auth login --hostname {{}}
  • 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}}

This is a tldr pages (source, CC BY 4.0) web wrapper for All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.