| name | gh |
| description | GitHub CLI commands for PRs, issues, repos, and workflows |
| argument-hint | [command or question] |
| allowed-tools | Bash, Read |
Help with GitHub CLI (gh) based on $ARGUMENTS.
Authentication
gh auth login
gh auth status
gh auth token
Pull Requests
gh pr create
gh pr create --title "Title" --body "Description"
gh pr create --draft
gh pr create --base main
gh pr list
gh pr view
gh pr view 123
gh pr view --web
gh pr checkout 123
gh pr diff
gh pr review --approve
gh pr review --comment -b "LGTM"
gh pr review --request-changes -b "Please fix..."
gh pr merge
gh pr merge --squash
gh pr merge --rebase
gh pr merge --auto
Issues
gh issue create
gh issue create --title "Bug" --body "Details"
gh issue list
gh issue view 123
gh issue close 123
gh issue comment 123 --body "Comment"
Repository
gh repo create
gh repo clone owner/repo
gh repo fork
gh repo view
gh repo view --web
Workflows (Actions)
gh workflow list
gh workflow run <name>
gh run list
gh run view
gh run watch
gh run rerun 12345
API
gh api repos/{owner}/{repo}
gh api repos/{owner}/{repo}/issues --method POST -f title="New issue"
gh api graphql -f query='{ viewer { login } }'
Aliases
gh alias set pv 'pr view'
gh alias list