gh-auth-logout - Man Page

Log out of a GitHub host

Synopsis

gh auth logout [flags]

Description

Remove authentication for a GitHub host.

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

Options

-h,  --hostname <string>

The hostname of the GitHub instance to log out of

Example

$ gh auth logout
# => select what host to log out of via a prompt

$ gh auth logout --hostname enterprise.internal
# => log out of specified host

See Also

gh-auth(1)

Referenced By

gh-auth(1).

May 2023 GitHub CLI manual