![]() |
![]()
| ![]() |
![]()
NAMEgh-auth-logout - Log out of a GitHub account SYNOPSISgh auth logout [flags] DESCRIPTIONRemove authentication for a GitHub account. This command removes the stored authentication configuration for an account. The authentication configuration is only removed locally. This command does not revoke authentication tokens. To revoke all authentication tokens generated by the GitHub CLI:
Note: this procedure will revoke all authentication tokens ever generated by the GitHub CLI across all your devices. For more information about revoking OAuth application tokens, see: ⟨https://docs.github.com/en/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps⟩ OPTIONS
EXIT CODES0: Successful execution 1: Error 2: Command canceled 4: Authentication required NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. EXAMPLE# 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 SEE ALSOgh-auth(1)
|