.nh .TH "GH-AUTH-LOGOUT" "1" "Feb 2023" "" "GitHub CLI manual" .SH NAME .PP gh-auth-logout - Log out of a GitHub host .SH SYNOPSIS .PP \fB\fCgh auth logout [flags]\fR .SH DESCRIPTION .PP Remove authentication for a GitHub host. .PP This command removes the authentication configuration for a host either specified interactively or via --hostname. .SH OPTIONS .TP \fB\fC-h\fR, \fB\fC--hostname\fR \fB\fC\fR The hostname of the GitHub instance to log out of .SH EXAMPLE .PP .RS .nf $ gh auth logout # => select what host to log out of via a prompt $ gh auth logout --hostname enterprise.internal # => log out of specified host .fi .RE .SH SEE ALSO .PP \fB\fCgh-auth(1)\fR