- Install gh cli from https://github.com/cli/cli
- Generate Token from https://github.com/settings/apps / https://github.com/settings/tokens
- Save Token to notepad
- Login to gh with Powershell
# authenticate against github.com by reading the token from a file
$ gh auth login --with-token < mytoken.txt