General
The workflow uses OAuth and background caching.
Commands
To search through your GitHub Enterprise instance replace gh
by ghe
.
Repo commands
gh user/repo
gh user/repo #123
gh user/repo @branch
gh user/repo *commit
gh user/repo /path/to/file
gh user/repo admin
gh user/repo clone
gh user/repo graphs
gh user/repo issues
gh user/repo milestones
gh user/repo network
gh user/repo new issue
gh user/repo new pull
gh user/repo pulls
gh user/repo pulse
gh user/repo releases
gh user/repo wiki
User commands
gh @user
gh @user overview
gh @user repositories
gh @user stars
gh @user gists
Search commands
gh s repo
gh s @user
"My" commands
gh my dashboard
gh my notifications
gh my profile
gh my issues
gh my issues created
gh my issues assigned
gh my issues mentioned
gh my pulls
gh my pulls created
gh my pulls assigned
gh my pulls mentioned
gh my repos
gh my settings
gh my stars
gh my gists
Workflow commands
gh > login
gh > logout
gh > delete cache
gh > delete database
gh > update
gh > activate autoupdate
gh > deactivate autoupdate
gh > help
gh > changelog
ghe > url
(GitHub Enterprise only)ghe > generate token
(GitHub Enterprise only)ghe > enterprise reset
(GitHub Enterprise only)