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.106.0
head ⚡️ HEAD

Depends on when building from source:

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

Binaries: gh

GitHub Packages downloads:

Last 30 days1,972,405
Downloads36,179,149
Analytics install events (30 days)323,881
Downloads / install events (30 days)6.1×

Source: GitHub Packages, fetched 2026-11-29T00:55:12Z. Analytics dates: 2026-10-30 to 2026-11-29. 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
Installs323,344794,8463,233,283
Installs (--HEAD)5371,4255,175
Installs on Request320,282789,4623,225,048
Installs on Request (--HEAD)5371,4255,175
Build Errors1,862