GitHub's official command line tool
open sourceMITself-hostablefree
gh brings pull requests, issues, releases, Actions runs and other GitHub concepts to the terminal. It supports GitHub.com, GitHub Enterprise Cloud and Enterprise Server, has an api command for arbitrary REST/GraphQL calls, and ships an agent skill for driving gh from coding agents.
Ways to install
Package managers
Problems it solves
- create a pull request without leaving the terminal
- check out a teammate's PR locally by number
- see whether CI passed on my PR from the command line
- script GitHub API calls without handling tokens and pagination myself
- my AI coding agent needs to read PR comments and issues
- list and view issues in a repo from the shell
- rerun a failed Actions workflow from the terminal
- create a release and upload assets from a script
- clone and fork repos quickly
- let my coding agent wait for its CI run to finish and see whether it failed
Features
- PRs, issues, releases
- Actions runs
- gh api
- Enterprise Server support
- agent skill
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what GitHub CLI (gh) does.
- gh-dash A rich terminal UI for GitHub that doesn't break your flow.
- Graphite One tool. Everything you need to review and ship faster.
- CircleCI CLI Use CircleCI from the command line
- GitLab CLI A GitLab CLI tool bringing GitLab to your command line