gh

Install command:
brew install gh

GitHub command-line tool

https://cli.github.com/

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/gh.json

Formula code: gh.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.103.3
head ⚡️ HEAD

Depends on when building from source:

go 1.27.3 Open source programming language to build simple/reliable/efficient software

Binaries: gh

GitHub Packages downloads:

Last 30 days1,830,790
Downloads34,593,371
Analytics install events (30 days)291,923
Downloads / install events (30 days)6.3×

Source: GitHub Packages, fetched 2026-11-08T00:52:00Z. Analytics dates: 2026-10-09 to 2026-11-08. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs291,374744,7063,093,549
Installs (--HEAD)5491,4114,999
Installs on Request288,782741,4023,087,323
Installs on Request (--HEAD)5491,4114,999
Build Errors1,901
Build Errors (--HEAD)2