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

gh-auth-logout - Log out of a GitHub host

gh auth logout [flags]

Remove authentication for a GitHub host.

This command removes the authentication configuration for a host either specified interactively or via --hostname.

-h, --hostname <string>
The hostname of the GitHub instance to log out of

$ gh auth logout
# => select what host to log out of via a prompt
$ gh auth logout --hostname enterprise.internal
# => log out of specified host

gh-auth(1)

Feb 2023