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

Category: GitHub CLI

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

Authenticate non-interactively using a personal access token from stdin

Authenticates non-interactively using a personal access token piped from a file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.