GitHub CLI

GitHub 官方 gh 命令行。管理 issue、PR、Actions、Codespaces、Release 等,适合 Agent 自动化 repo 工作流;支持 JSON 输出 (--json)。

维护者 @admin

安装与运行

推荐安装
brew install gh
示例
gh pr list --repo owner/repo --json number,title

元数据

协议
MIT
二进制
gh
标签
github, git, agent, json-output, automation
分类
dev
GitHub Star
43,463

Agent 提示

与 GitHub 仓库交互、列 PR/Issue、触发 workflow、发布 Release 时优先使用 gh;官方入口见 https://cli.github.com/ 。

  • gh auth status
  • gh issue list --json title,number
  • gh pr create --fill
  • gh api repos/:owner/:repo --method GET