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 .md
Readiness
Great for agents · 75/100
Verify
gh auth status
Agent URL
/cli/gh/agent.md

Quick reference

Installbrew install gh
Verifygh auth status
First commandgh auth login && gh repo clone vercel/next.js

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