Authenticate

Authenticate with GitHub

github
auth
login

Command

gh auth login

Explanation

Authenticate with GitHub to access your repositories and perform actions on your behalf.

Examples

Interactive login

gh auth login

Login with token

gh auth login --with-token < token.txt

Check auth status

gh auth status