gh-cli

Manage GitHub repositories, issues, pull requests, and Actions from the command line.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with GitHub through the web UI requires constant context switching between the terminal and browser. This Skill provides a complete reference for the GitHub CLI (gh), letting you perform repository, issue, pull request, Actions, release, gist, codespace, and organization operations directly from the command line. ## Core Features & Use Cases - Full GitHub workflow coverage: Create, list, view, edit, merge, and close issues and pull requests; manage repositories, releases, labels, secrets, variables, and workflow runs. - Automation-ready output: Use --json and --jq flags to produce structured output for scripting, CI pipelines, and reporting. - Use Case: You need to review and merge a teammate's PR. Run gh pr checks 123 --watch to monitor CI, gh pr review 123 --approve to approve, and gh pr merge 123 --squash --delete-branch to merge and clean up, all without leaving your terminal. ## Quick Start Use the gh-cli skill to list all open pull requests in the current repository and show their CI check status.

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 run it bare for interactive prompts. You can add --draft, --reviewer, --assignee, --labels, and --base to control the target branch and metadata.

How do I authenticate the GitHub CLI?

Run gh auth login for interactive browser or token-based login, or pipe a token with gh auth login --with-token. Verify with gh auth status, and run gh auth setup-git to configure git credential handling.

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

Use gh run list to see recent runs, gh run view <id> --log for logs, and gh run watch <id> to follow a run in real time. You can rerun failures with gh run rerun and download artifacts with gh run download.

Can gh output JSON for scripting and automation?

Yes, most list and view commands support --json with field selection and --jq for filtering with jq expressions. For example, gh pr list --json number,title,state returns structured data suitable for pipelines.

Does the GitHub CLI work with GitHub Enterprise Server?

Yes, authenticate against your instance with gh auth login --hostname your-host, and set GH_HOST or GH_ENTERPRISE_HOSTNAME environment variables. Most commands accept --repo and hostname flags for enterprise targets.

How do I manage GitHub Actions secrets from the command line?

Use gh secret set NAME to store a secret, optionally with --env or --org scope, and gh secret list to view names. Values are never displayed after creation; delete them with gh secret delete.