.nh .TH "GH-AUTH-LOGOUT" "1" "Mar 2024" "" "GitHub CLI manual" .SH NAME .PP gh-auth-logout - Log out of a GitHub account .SH SYNOPSIS .PP \fBgh auth logout [flags]\fR .SH DESCRIPTION .PP Remove authentication for a GitHub account. .PP This command removes the stored authentication configuration for an account. The authentication configuration is only removed locally. .PP This command does not invalidate authentication tokens. .SH OPTIONS .TP \fB-h\fR, \fB--hostname\fR \fB\fR The hostname of the GitHub instance to log out of .TP \fB-u\fR, \fB--user\fR \fB\fR The account to log out of .SH EXAMPLE .EX # Select what host and account to log out of via a prompt $ gh auth logout # Log out of a specific host and specific account $ gh auth logout --hostname enterprise.internal --user monalisa .EE .SH SEE ALSO .PP \fBgh-auth(1)\fR