GitHub CLI brings issues, pull requests, and other GitHub workflows to the terminal beside git. It works with GitHub.com, Enterprise Cloud, and supported Enterprise Server deployments.
Overview
GitHub CLI, invoked as gh, exposes GitHub concepts such as pull requests and issues from the command line where developers already work with git and local code. It is distinct from older community tools that proxied git itself; gh operates as a standalone client.
The tool supports macOS, Windows, and Linux through package managers, prebuilt release binaries, and optional source builds. GitHub-hosted Actions runners ship a preinstalled build updated regularly, and Codespaces can add gh through devcontainer configuration.
Recent releases publish immutable binaries with optional build provenance attestations verifiable through Sigstore when cosign or gh itself is available. Documentation covers installation paths and command reference, including an agent skill installable via the built-in gh skill command for coding assistants.
Users on Enterprise instances rely on the same client against their organization's host, with community-maintained packaging notes for additional platforms.
Key features
- Pull request workflows
- Issue management
- Git-adjacent terminal UX
- Cross-platform packages
- Agent skill packaging
- Immutable release binaries
- Build provenance attestations
- Enterprise host support
Use cases
- Terminal pull request reviews
- Scripted GitHub automation
- Issue triage from shell