Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Authenticate with a GitHub host.

# start interactive setup
$ gh auth login

# authenticate against github.com by reading the token from a file
$ gh auth login --with-token < mytoken.txt

# authenticate with a specific GitHub instance
$ gh auth login --hostname enterprise.internal
Source by cli.github.com #
 
PREVIOUS NEXT
Tagged: #Authenticate #GitHub
ADD COMMENT
Topic
Name
1+8 =