gh-cli

Provides a comprehensive command reference for GitHub CLI operations across repositories, issues, pull requests, and Actions.

1|1|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill gh-cli-ultraviollettnympho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/ultraviollettnympho/transit-ticket/tree/main/.github/skills/gh-cli
Command: npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill gh-cli-ultraviollettnympho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with GitHub from the terminal requires memorizing dozens of gh subcommands, flags, and output options, and looking them up repeatedly slows down development workflows. ## Core Features & Use Cases - Full Command Coverage: Documents every major gh command group including auth, repo, issue, pr, workflow, run, release, gist, codespace, project, search, and extension management. - Copy-Ready Examples: Provides concrete command-line examples with flags for common tasks like creating PRs, merging with specific strategies, and querying JSON output with jq. - Use Case: A developer needs to list all open PRs with failing checks, review one, and merge it with squash. This reference gives the exact commands: gh pr list with JSON filters, gh pr checks, gh pr review --approve, and gh pr merge --squash. ## Quick Start Ask the AI to show the gh commands for creating a pull request with reviewers and labels, then merging it with the squash method.

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 flags, or use it interactively. You can add --base to set the target branch, --draft for a draft PR, --reviewer to request reviewers, and --labels to apply labels in one command.

How do I list open GitHub issues with specific labels using gh?

Use gh issue list --labels bug,high-priority to filter by labels. Combine with --assignee, --state, --limit, or --search for finer control, and add --json with --jq for structured output.

How do I authenticate GitHub CLI with a token?

Run gh auth login --with-token < token.txt to authenticate non-interactively, or set the GH_TOKEN environment variable for automation. Verify the setup with gh auth status and configure git integration via gh auth setup-git.

Can gh CLI work with GitHub Enterprise Server?

Yes, gh supports GitHub Enterprise through the --hostname flag on commands like gh auth login --hostname enterprise.internal. You can also set GH_HOST or GH_ENTERPRISE_HOSTNAME environment variables to target enterprise instances.

How do I watch a GitHub Actions workflow run in the terminal?

Use gh run watch <run-id> to stream a run's progress in real time, with --interval to control refresh rate. List recent runs first with gh run list, optionally filtered by --workflow or --branch.

Why does gh pr merge fail even when checks pass?

Merges can fail due to branch protection rules, required reviews, or merge conflicts. Use gh pr checks to inspect status, gh pr update-branch to sync with the base branch, or gh pr merge --admin to override protections if permitted.