← Back to tools
View AGENTS.md for GitHub CLI
GitHub CLI
GitHub's official command-line tool for seamless workflow
Description
gh is the official GitHub CLI. It brings pull requests, issues, releases, Actions, and other GitHub features to the terminal. It enables a complete GitHub workflow without leaving the command line.
Install
homebrew
brew install ghapt
sudo apt install ghpacman
sudo pacman -S github-cliAI Summary
GitHub's official CLI. Manage pull requests, issues, releases, Actions, and repositories from the terminal with full GitHub API access.
Capabilities
- + Create and manage pull requests and issues
- + Trigger and view GitHub Actions workflows
- + Browse and clone repositories
- + Full GitHub API access via gh api
Use When
- → Managing GitHub PRs, issues, and releases from the terminal
- → Automating GitHub workflows in scripts
- → Need quick access to the GitHub API
Avoid When
- x Working with non-GitHub remotes (GitLab, Bitbucket)
Usage Patterns
Create a pull request
gh pr create --fill Creates a PR with title and body from commit messages
View PR checks
gh pr checks Shows CI/CD check status for the current PR