gh-cli

Provide gh CLI v2.85.0 command syntax and flag references.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eric-sabe/engsys --skill gh-cli-eric-sabe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/eric-sabe/engsys/tree/main/core/skills/gh-cli
Command: npx skills add https://github.com/eric-sabe/engsys --skill gh-cli-eric-sabe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the hassle of switching between your terminal and GitHub's web interface, or scrolling through scattered official documentation, to find the correct GitHub CLI (gh) command syntax and flags for any GitHub operation.

Core Features & Use Cases

  • Comprehensive Command Reference: Covers every core gh command group including authentication, repository management, issue and pull request operations, GitHub Actions, projects, releases, gists, codespaces, organization administration, and search functionality.
  • Version-Specific Guidance: Tailored to gh CLI v2.85.0, with accurate, up-to-date examples for common and advanced tasks like creating draft PRs linked to issues, downloading GitHub Actions artifacts, or managing organization secrets.
  • Use Case: A developer can quickly look up the exact command to merge a PR with squash strategy and auto-delete the source branch, or find the right flags to set a GitHub Actions secret for a specific production environment, without leaving their terminal workflow.

Quick Start

Use the gh-cli skill to look up the exact command to close a stale issue and add a comment explaining the closure reason.

Frequently Asked Questions about gh-cli

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

FAQPage Schema
How do I find the exact GitHub CLI command syntax for managing pull requests from the terminal?

To find GitHub CLI command syntax for pull requests, use this reference tailored to gh CLI v2.85.0. It provides accurate, version-specific flags and examples for PR operations, eliminating context switching between your terminal and scattered documentation.

Can I automate GitHub Actions secrets and environment configuration using gh CLI?

Yes, you can automate GitHub Actions secrets using gh CLI commands. This reference covers exact flags for setting environment-specific production secrets and downloading workflow artifacts, enabling deterministic, scriptable GitHub Actions operations directly from the terminal.

What is the best way to manage GitHub repositories and issues without leaving the command line?

The best way to manage GitHub repositories and issues from the command line is using gh CLI. This reference covers all core command groups including repository creation, issue tracking, and project management, providing deterministic, scriptable operations without web interface context switching.

Does gh CLI v2.85.0 support organization administration and codespaces management?

Yes, gh CLI v2.85.0 supports organization administration and codespaces management. This reference provides version-specific command examples and configuration guidance for managing organization secrets, codespaces, and gists, enabling comprehensive terminal-based GitHub workflow automation.

How do I merge a pull request with squash strategy and auto-delete the source branch using gh CLI?

To merge a pull request with squash strategy and auto-delete the source branch, use the specific gh CLI flags provided in this reference. It offers exact command examples for PR operations, ensuring deterministic scriptable workflows without checking external documentation.

Why should I use gh CLI for version control instead of switching to the GitHub web interface?

You should use gh CLI for version control to eliminate context switching between the terminal and GitHub's web interface. It provides scriptable, deterministic command syntax for repository management, issue operations, and release tracking, streamlining developer workflows.