46,945
stars
+15
9,269
forks
1,152
watchers
4,809
prs
6,699
issues
210
releases
714
discussions
README
GitHub CLI
GitHub CLI, or the gh CLI, is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.
[!IMPORTANT]
GitHub CLI's PGP signing key rotation for Linux package repositories is effective September 5, 2026; users experiencing package installation or update problems can find solutions in the public announcement.
!screenshot of gh pr status
GitHub CLI is supported for users on GitHub.com, GitHub Enterprise Cloud, and supported GitHub Enterprise Server versions, with support for macOS, Windows, and Linux.
Documentation
For installation options see below, for usage instructions see the manual.
Agent skills
An agent skill is available for driving gh from coding agents. Install or update it with the built-in gh skill command:
shell
Install the skill (user scope recommended)
gh skill install cli/cli gh --scope user
Update the skill after a gh release
gh skill update gh
Contributing
If anything feels off or if you feel that some functionality is missing, please check out the contributing page. There you will find instructions for sharing your feedback, building the tool locally, and submitting pull requests to the project.
If you are a hubber and are interested in shipping new commands for the CLI, check out our doc on internal contributions
Installation
macOS
- Homebrew
- Precompiled binaries on [releases page][]
For additional macOS packages and installers, see community-supported docs
Linux & Unix
- Debian, Raspberry Pi, Ubuntu
- Amazon Linux, CentOS, Fedora, openSUSE, RHEL, SUSE
- Precompiled binaries on [releases page][]
For additional Linux & Unix packages and installers, see community-supported docs
Windows
- WinGet
- Precompiled binaries on [releases page][]
For additional Windows packages and installers, see community-supported docs
Build from source
See here on how to build GitHub CLI from source.
GitHub Codespaces
To add GitHub CLI to your codespace, add the following to your devcontainer file:
json
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
}
GitHub Actions
GitHub-hosted runners have the GitHub CLI pre-installed, which is updated weekly.
If a specific version is needed, your GitHub Actions workflow will need to install it based on the macOS, Linux & Unix, or Windows instructions above.
For information on all pre-installed tools, see actions/runner-images
Verification of binaries
Starting with v2.93.0, releases of gh are published as immutable releases. For more information, see Immutable releases.
Since version 2.50.0, gh has been producing Build Provenance Attestation, enabling a cryptographically verifiable paper-trail back to the origin GitHub repository, git revision, and build instructions used. The build provenance attestations are signed and rely on Public Good Sigstore for PKI.
There are two common ways to verify a downloaded release, depending on Top issues
#14090[aw] Detection Runs229 comments · 2026-08-06#326Allow multiple account credentials108 comments · 2020-02-07#13118Upcoming PGP signing key rotation for GitHub CLI Linux packages [September 2026]76 comments · 2026-04-08#9139Sign Mac OS Installer packages46 comments · 2024-05-29#5150`gh` as Docker credential helper43 comments · 2022-02-01#2189gh pr push41 comments · 2020-10-14#14309`--attach` cannot work for GitHub App installation tokens — the upload endpoint 404s them even with write access39 comments · 2026-09-01#5149create/edit/list/delete repo environment38 comments · 2022-02-01
Discussions
#14975Request for official Authenticode signing identity for GitHub CLI v2.103.3 (Windows AMD64)0 comments · 2026-11-06#14945Hiii1 comments · 2026-11-05#14944I'm sorry 😞0 comments · 2026-11-05#14934.github/CONTRIBUTING.md2 comments · 2026-11-03#14916clone all repositories / bulk clone | Feature request: Clone all repositories belonging to a user0 comments · 2026-11-03#14909Majid5960 comments · 2026-11-02#14847Public Apple signer binding for gh 2.103.3 macOS ARM64 release4 comments · 2026-10-28#14839aider moi à installer Copilote CLI0 comments · 2026-10-27
Latest release
GitHub CLI 2.103.3 v2.103.3 2026-10-26What's Changed 🐛 Fixes fix(gh auth status): explain expired expiring tokens with --no-refresh by @babakks in 14815 Full Changelog: https://github.com/cli/cli/compare/v2.103.2...v2.103.3