gh
officialscriptablepopulargitbrew
GitHub · Pull requests, issue triage, and github actions from the terminal.
$ brew install ghOne-liner to try
$ gh auth loginAgent pack
Quick reference
Install
brew install ghVerify
gh auth statusFirst command
gh auth login && gh repo clone vercel/next.jsMachine JSON
/cli/gh.jsonAbout
The official CLI from GitHub. Pull requests, issue triage, and github actions from the terminal. Start with `gh auth login` and go from there. Supports structured output — good for scripts and agents.
Example workflow
1. gh auth login2. gh repo clone vercel/next.js3. gh pr create --fill