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.