Loading...
Loading...
Reference for GitHub CLI (gh) - READ-ONLY operations only
npx skill4agent add sirn/dotfiles gh-reference| Method | Command |
|---|---|
Use | |
| List remotes | |
-R owner/repo| Task | Command |
|---|---|
| List issues | |
| View issue | |
| View issue (web) | |
| Issue status | |
--state open|closed|all--label bug--assignee @me--limit 10| Task | Command |
|---|---|
| List PRs | |
| View PR | |
| View PR diff | |
| View PR checks | |
| PR status | |
--state open|closed|merged|all--label enhancement--draft--limit 10| Task | Command |
|---|---|
| View repo info | |
| View repo (web) | |
| List your repos | |
| List org repos | |
| Task | Command |
|---|---|
| List runs | |
| View run | |
| View run log | |
| Watch run | |
--workflow <name>--branch <branch>--limit 10--status completed|failed|in_progress| Task | Command |
|---|---|
| List workflows | |
| View workflow | `gh workflow view <name |
| View workflow YAML | `gh workflow view <name |
| Task | Command |
|---|---|
| List caches | |
--limit 10--sort size|created_at--order asc|desc| Task | Command |
|---|---|
| List releases | |
| View release | |
| View latest | |
| Task | Command |
|---|---|
| Search repos | |
| Search issues | |
| Search PRs | |
| Search code | |
| Search commits | |
gh search repos "language:go stars:>1000"
gh search issues "is:open label:bug repo:cli/cli"
gh search code "function main" --language=go| Task | Command |
|---|---|
| View status | |
| Org status | |
| Exclude repos | |
| Task | Command |
|---|---|
| GET endpoint | |
| With jq filter | |
| Paginate | |
gh api repos/owner/repo/issues --paginate
gh api repos/owner/repo/pulls -q '.[] | {number, title}'
gh api graphql -f query='query { viewer { login } }'| Goal | Flag | Example |
|---|---|---|
| JSON output | | |
| JSON fields | | |
| Quiet (IDs only) | `--jq '.[] | .number'` |
| Web browser | | |
# From git remote
git remote -v
# From jj (if using Jujutsu)
jj git remote list-R owner/repo