1---
2name: github-cli
3description: GitHub CLI (gh) reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, and GitHub operations from the command line.
4metadata:
5 author: hairy
6 version: "2026.2.6"
7 source: Generated from sources/github (awesome-copilot), scripts at https://github.com/antfu/skills
8---
9
10# GitHub CLI (gh)
11
12Use this skill when working with GitHub from the command line: repos, issues, PRs, Actions, projects, releases, gists, codespaces, search, secrets, and API. Content is based on gh 2.85.0 (January 2026).
13
14## Core References
15
16| Topic | Description | Reference |
17|-------|-------------|-----------|
18| CLI Structure | Full command tree for discovery | [core-cli-structure](references/core-cli-structure.md) |
19| Install & Verify | Install on macOS, Linux, Windows; verify | [core-install](references/core-install.md) |
20| Auth & Config | Login, token, config, env vars, browse, global flags, JSON/template output | [core-auth-config](references/core-auth-config.md) |
21| Repos, Issues, PRs | Create/list/view/edit repo, issue, PR; merge, review, checkout | [core-repo-issues-prs](references/core-repo-issues-prs.md) |
22| Repo Extras | Autolinks, deploy keys, gitignore/license, rename, archive | [core-repo-extras](references/core-repo-extras.md) |
23| Issue & PR Advanced | Status, pin, lock, transfer, delete, review types, merge options | [core-issue-pr-advanced](references/core-issue-pr-advanced.md) |
24
25## Features
26
27### Actions & Secrets
28
29| Topic | Description | Reference |
30|-------|-------------|-----------|
31| Runs, Workflows, Cache | List/watch/rerun/delete runs, run workflows, manage caches | [features-actions-secrets](references/features-actions-secrets.md) |
32| Secrets & Variables | Repository, environment, org secrets/variables | [features-actions-secrets](references/features-actions-secrets.md) |
33
34### Projects, Releases & More
35
36| Topic | Description | Reference |
37|-------|-------------|-----------|
38| Projects | Fields, items, link/unlink, copy, mark-template | [features-projects-releases-gists](references/features-projects-releases-gists.md) |
39| Releases | Create, upload, download, verify, verify-asset | [features-projects-releases-gists](references/features-projects-releases-gists.md) |
40| Gists & Codespaces | Gist rename/multi-file; codespace cp, jupyter, logs, ports | [features-projects-releases-gists](references/features-projects-releases-gists.md) |
41| Orgs | List, view, JSON output | [features-projects-releases-gists](references/features-projects-releases-gists.md) |
42| Preview & Agent Tasks | gh preview, gh agent-task | [features-preview-agent-task](references/features-preview-agent-task.md) |
43| Search, API, Misc | Search, labels, SSH/GPG keys, gh api, aliases, extensions, rulesets, attestation | [features-search-api-misc](references/features-search-api-misc.md) |
44
45## Best Practices
46
47| Topic | Description | Reference |
48|-------|-------------|-----------|
49| Environment Setup | Shell completion, aliases, git credential helper | [best-practices-workflows](references/best-practices-workflows.md) |
50| Workflows & Practices | Automation tips, bulk ops, repo setup, CI/CD, fork sync, help | [best-practices-workflows](references/best-practices-workflows.md) |
51
52## Quick Tips
53
54- Use `GH_TOKEN` and `GH_REPO` for non-interactive use.
55- Prefer `--json` + `--jq` for scripting.
56- Use `gh repo set-default owner/repo` to avoid repeating `--repo`.