GH-AUTH(1) GitHub CLI manual GH-AUTH(1)

gh-auth - Authenticate gh and git with GitHub

gh auth <command> [flags]

Log in to a GitHub account

Log out of a GitHub account

Refresh stored authentication credentials

Setup git with GitHub CLI

View authentication status

Switch active GitHub account

Print the authentication token gh uses for a hostname and account

gh(1)

Nov 2024