You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't find a way to authenticate myself without using a browser. If there is another way to do this (I read all the documentation and I didn't find anything) it would be better.
I think that a good way this can be done is passing as a command line argument, both user and password tokens.
The next release of GitHub CLI will feature a gh auth login command where you can paste an authentication token as an alternative to browser authentication: #1445
In the meantime, you can set the GITHUB_TOKEN environment variable with your authentication token to skip browser authentication.
Activity
mislav commentedon Aug 21, 2020
Hi, sorry for the bad experience!
The next release of GitHub CLI will feature a
gh auth logincommand where you can paste an authentication token as an alternative to browser authentication: #1445In the meantime, you can set the GITHUB_TOKEN environment variable with your authentication token to skip browser authentication.