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