gh-cli

Reference GitHub CLI commands, flags, and workflows across subcommands.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a comprehensive reference for the GitHub CLI (gh), enabling users to quickly learn commands, flags, and workflows without scattering across multiple docs.

Core Features & Use Cases

  • Exhaustive command coverage: repositories, issues, pull requests, actions, projects, releases, gists, codespaces, organizations, and extensions.
  • Quick lookup and examples: navigate command trees, understand options, and see practical usage for common tasks like creating issues or PRs.
  • Real-world scenarios: automate routine GitHub operations from the terminal, audit workflows, and troubleshoot command behavior with examples.

Quick Start

Look up topics such as gh pr create or gh repo list to review subcommands, flags, and example usages, then run the command in your environment to verify results.

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 using GitHub CLI?

Use the gh pr create command to open a pull request directly from your terminal. The GitHub CLI provides flags for setting titles, bodies, reviewers, and base branches to customize the PR creation workflow.

Can I automate GitHub issues and releases through terminal scripts?

Yes, you can automate routine GitHub tasks by scripting gh commands for issues and releases. The CLI supports creating issues, drafting releases, and managing repositories, allowing you to automate workflows without navigating the web interface.

What GitHub CLI commands are available for managing repositories and actions?

The GitHub CLI offers exhaustive command coverage for managing repositories, actions, projects, and gists. You can list repositories, trigger actions workflows, and audit your CI/CD pipelines directly from the command line.

Does GitHub CLI work with codespaces and organizations?

Yes, GitHub CLI supports managing codespaces and organizations. You can use specific gh subcommands to create codespaces, manage organization settings, and handle team operations from your terminal.

What is the best way to look up flags and examples for a specific gh command?

Use this reference to quickly look up gh command trees, precise flag explanations, and practical examples. It consolidates usage patterns for subcommands like gh pr and gh repo so you can verify syntax before execution.

How do I extend GitHub CLI functionality for custom workflows?

You can extend GitHub CLI functionality by using gh extensions. Extensions allow you to add custom commands and scripts to your CLI environment, tailoring the tool to fit your specific automation and project management needs.