gh auth logout

Log out of a GitHub host

Synopsis

Remove authentication for a GitHub host.

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

gh auth logout [flags]

Examples

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

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

Options

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

Options inherited from parent commands

      --help   Show help for command