.nh .TH "GH-AUTH" "1" "Oct 2022" "" "GitHub CLI manual" .SH NAME .PP gh-auth - Authenticate gh and git with GitHub .SH SYNOPSIS .PP \fB\fCgh auth [flags]\fR .SH COMMANDS .TP \fB\fCgh-auth-login(1)\fR Authenticate with a GitHub host .TP \fB\fCgh-auth-logout(1)\fR Log out of a GitHub host .TP \fB\fCgh-auth-refresh(1)\fR Refresh stored authentication credentials .TP \fB\fCgh-auth-setup-git(1)\fR Configure git to use GitHub CLI as a credential helper .TP \fB\fCgh-auth-status(1)\fR View authentication status .TP \fB\fCgh-auth-token(1)\fR Print the auth token gh is configured to use .SH SEE ALSO .PP \fB\fCgh(1)\fR