gh-cli

Reference GitHub CLI commands for repositories, issues, pull requests, Actions, and releases.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/rithm84/Manor --skill gh-cli-rithm84
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/rithm84/Manor/tree/main/.agents/skills/general/gh-cli
Command: npx skills add https://github.com/rithm84/Manor --skill gh-cli-rithm84

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with GitHub from the terminal requires knowing dozens of gh subcommands, flags, and output options, and looking them up repeatedly slows down repository, issue, and pull request workflows. ## Core Features & Use Cases - Full Command Reference: Covers every major gh command group including auth, repo, issue, pr, run, workflow, release, gist, codespace, project, search, label, and secret management. - Copy-Ready Examples: Each command includes concrete flag combinations, JSON output with jq filtering, and scripting patterns for automation. - Use Case: You need to list all open PRs with failing checks, review one, and merge it with squash. This reference gives you the exact gh pr list, gh pr checks, gh pr review, and gh pr merge commands with the right flags. ## Quick Start Ask the agent to show the gh commands for creating a pull request with reviewers and labels, then merging it with squash after checks pass.

Frequently Asked Questions about gh-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a pull request from the command line with gh?

Run gh pr create with --title and --body to open a pull request from your current branch. Add --base to set the target branch, --reviewer to request reviewers, --labels for labels, and --draft to create it as a draft.

How to list open GitHub issues with filters using gh cli?

Use gh issue list with flags like --assignee, --labels, --milestone, and --state to filter results. Add --json with fields such as number, title, and labels, then pipe through --jq for custom tabular output.

Does gh cli work with GitHub Enterprise Server?

Yes, gh supports GitHub Enterprise by authenticating with gh auth login --hostname your-enterprise-host. You can also set the GH_HOST environment variable so all commands target the enterprise instance by default.

How do I watch GitHub Actions workflow runs from the terminal?

Use gh run list to see recent workflow runs and gh run watch with a run ID to follow one in real time. gh run view --log shows full job logs, and gh pr checks --watch monitors checks on a pull request.

Why does gh auth login fail in headless or CI environments?

Interactive login requires a browser, which headless environments lack. Instead authenticate non-interactively with gh auth login --with-token reading a token from stdin, or set the GH_TOKEN environment variable directly.