On this page
Overview
GitHub CLI (gh) is GitHub's official command-line tool. It brings pull requests, issues, repositories, and other GitHub concepts into the terminal alongside Git and supports GitHub.com, GitHub Enterprise Cloud, and supported GitHub Enterprise Server releases.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Key features
Handle pull requests and issues from the terminal
GitHub CLI moves pull-request and issue workflows next to Git so status checks, creation, review, and related operations can stay in a terminal-first workflow.
Sources: [1]
Use GitHub API access and repository context in scripts
The CLI exposes GitHub API access and reuses host, repository, and authentication context, making it suitable for shell scripts and automation.
Use the same CLI across GitHub.com and Enterprise environments
The README lists GitHub.com, GitHub Enterprise Cloud, and supported GitHub Enterprise Server versions as supported environments.
Sources: [1]
Best fit
Fits terminal-first development, review, and release workflows
It is useful for developers, CI scripts, and coding agents that want branch work and GitHub PR, issue, and API operations in one terminal workflow.
Sources: [1]
Before adoption
Separate authentication scopes and hosts for automation
Interactive use and CI or agent use have different credential needs. Limit token scopes and make the target GitHub.com or Enterprise host explicit.
Sources: [2]
Release binaries support provenance verification
The README documents build provenance attestations since v2.50.0 and immutable releases since v2.93.0, which can be used to verify directly downloaded artifacts.
Source builds need the Go toolchain specified by the release
The v2.102.0 go.mod declares Go 1.27.0 and toolchain go1.27.1. Keep source-build requirements separate from normal precompiled package installation.
Sources: [3]
Official sources
- [1]GitHub CLI v2.102.0 README(2026-10-03)
- [2]GitHub CLI v2.102.0 API and hosts guide(2026-10-03)
- [3]GitHub CLI v2.102.0 go.mod(2026-10-03)
- [4]GitHub CLI v2.102.0 release(2026-10-03)
- [5]GitHub CLI MIT license(2026-10-03)
Supplemental curator note
GitHub CLI keeps reviews and repository operations close to the terminal and also provides a practical boundary for scripts and coding agents. For automation, avoid interactive login and make token scopes and execution context explicit.
Try it in 3 steps
- 1
Install GitHub CLI 2.102.0 from source with a pinned version
Build into a local
.bindirectory using the Go toolchain required by v2.102.0. Official packages and precompiled binaries are also available for normal installation.GOBIN="$PWD/.bin" go install github.com/cli/cli/v2/cmd/gh@v2.102.0 - 2
Verify the
ghversionConfirm the pinned 2.102.0 binary starts correctly.
./.bin/gh --version - 3
Inspect pull-request command help
Review PR subcommands without authenticating or changing a repository. Configure the intended host and credentials before real operations.
./.bin/gh help pr
Growth
Growth trends · Last 30 days
46,522 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 175
- Open PRs
- 74
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- github-api-v4
- cli
- git
- golang
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- stock-screener336 Stars
2 shared tag(s) · 1 shared category(s)
Self-host or browse static snapshots for 12-market fundamental and technical screening, breadth, group rotation, AI research, and options context
Python - legmacs42 Stars
2 shared tag(s) · 1 shared category(s)
Extend a small terminal editor with the same let-go Lisp and public APIs used by its built-in commands
Clojure - Terraform49,817 Stars
2 shared tag(s) · Same language
Manage infrastructure changes through declarative configuration, plans, and dependency graphs
Go - Dokku32,163 Stars
2 shared tag(s) · Same language
turn a single Linux VM into a PaaS from git push through build, release, and routing
Go - Argo Workflows17,019 Stars
2 shared tag(s) · Same language
orchestrate container tasks on Kubernetes as DAGs or steps for batch, ML, data, and automation workflows
Go - Who Dat?313 Stars
3 shared tag(s) · 1 shared category(s) · Same language
prefer RDAP, fall back to WHOIS, and normalize domain-registration data into one JSON schema
Go
Report incorrect information
Tell us if any listing information is incorrect or outdated.