gh

officialscriptablepopulargitbrew

GitHub · Pull requests, issue triage, and github actions from the terminal.

$ brew install gh
One-liner to try
$ gh auth login

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .mdJSON
Readiness
Great for agents · 75/100
Verify
gh auth status
Agent URL
/cli/gh/agent.md

Quick reference

Install
brew install gh
Verify
gh auth status
First command
gh auth login && gh repo clone vercel/next.js
Machine JSON
/cli/gh.json

About

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 login
2. gh repo clone vercel/next.js
3. gh pr create --fill

Alternatives worth considering