Command
gh auth loginExplanation
Authenticate with GitHub to access your repositories and perform actions on your behalf.
Examples
Interactive login
gh auth loginLogin with token
gh auth login --with-token < token.txtCheck auth status
gh auth status