Take GitHub to the command line| GitHub CLI
You can use a personal access token in place of a password when authenticating to GitHub in the command line or with the API.| GitHub Docs