gh1
Github cli
Usage
gh <command>
<subcommand>
[flags]
Overview
Work seamlessly with GitHub from the command line.
Core commands
|
Authenticate gh and git with GitHub |
|---|---|
|
Open repositories, issues, pull requests, and more in the browser |
|
Connect to and manage codespaces |
|
Work with GitHub Discussions (preview) |
|
Manage gists |
|
Manage issues |
|
Manage organizations |
|
Manage pull requests |
|
Work with GitHub Projects. |
|
Manage releases |
|
Manage repositories |
|
Install and manage agent skills (preview) |
Github actions commands
|
Manage GitHub Actions caches |
|---|---|
|
View details about workflow runs |
|
View details about GitHub Actions workflows |
Additional commands
gh-agent-task(1)-
Work with agent tasks (preview)
gh-alias(1)-
Create command shortcuts
gh-api(1)-
Make an authenticated GitHub API request
gh-attestation(1)-
Work with artifact attestations
gh-completion(1)-
Generate shell completion scripts
gh-config(1)-
Manage configuration for gh
gh-copilot(1)-
Run the GitHub Copilot CLI (preview)
gh-extension(1)-
Manage gh extensions
gh-gpg-key(1)-
Manage GPG keys
gh-label(1)-
Manage labels
gh-licenses(1)-
View third-party license information
gh-preview(1)-
Execute previews for gh features
gh-ruleset(1)-
View info about repo rulesets
gh-search(1)-
Search for repositories, issues, and pull requests
gh-secret(1)-
Manage GitHub secrets
gh-ssh-key(1)-
Manage SSH keys
gh-status(1)-
Print information about relevant issues, pull requests, and notifications across repositories
gh-variable(1)-
Manage GitHub Actions variables
Options
-
--version -
Show gh version
Exit status
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
Examples
$ gh issue create $ gh repo clone cli/cli $ gh pr checkout 321
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.