DOKK / manpages / debian 13 / gh / gh-auth.1.en
GH-AUTH(1) GitHub CLI manual GH-AUTH(1)

gh-auth - Authenticate gh and git with GitHub

gh auth <command> [flags]

gh_auth_login(1)">">gh-auth-login(1)
Log in to a GitHub account

gh_auth_logout(1)">">gh-auth-logout(1)
Log out of a GitHub account

gh_auth_refresh(1)">">gh-auth-refresh(1)
Refresh stored authentication credentials

gh_auth_setup_git(1)">">gh-auth-setup-git(1)
Setup git with GitHub CLI

gh_auth_status(1)">">gh-auth-status(1)
View all accounts and authentication status

gh_auth_switch(1)">">gh-auth-switch(1)
Switch active GitHub account

gh_auth_token(1)">">gh-auth-token(1)
Print the authentication token gh uses for a hostname and account

gh(1)

Jan 2025