GitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# GitHub CLI (gh)
Comprehensive reference for GitHub CLI (gh) - work seamlessly with GitHub from the command line.
**Version:** 2.85.0 (current as of January 2026)
## Prerequisites
### Installation
```bash
# macOS
brew install gh
# Linux
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
# Windows
winget install --id GitHub.cli
# Verify installation
gh --version
```
### Authentication
```bash
# Interactive login (default: github.com)
gh auth login
# Login with specific hostname
gh auth login --hostname enterprise.internal
# Login with token
gh auth login --with-token < mytoken.txt
# Check authentication status
gh auth status
# Switch accounts
gh auth switch --hostname github.com --user username
# Logout
gh auth logout --hostname github.com --user username
```
### Setup Git Integration
```bash
…
The line at the top of this page pins the label git:20260420.c261aaa, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_a4zy76bmuk2o6qst
GET https://markdownregistry.com/api/v1/resolve?ref=devantler-tech/agent-plugins/gh-cli
GET https://markdownregistry.com/api/v1/blob/a264cff792b924f529e4ff62d93c09b36f606cd4cba85e4b619ac04f1d02c4ad
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/agent-improvement/SKILL.md · How a meta-engineer improves an autonomous AI engineer from the OUTSIDE — mining the agent's own operational telemetry…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/agent-instructions/SKILL.md · Architect a repository's AI-agent instruction files so one canonical source drives every tool without drift — AGENTS.md…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/find-skills/SKILL.md · Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/grilling/SKILL.md · Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/portfolio-maintenance/SKILL.md · The run loop for an autonomous AI engineer acting as a portfolio's primary engineer — pre-flight, resume in-flight work…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/product-documentation/SKILL.md · Build or maintain user documentation sites for software products, including tutorials, task guides, API reference and…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/product-engineering/SKILL.md · The ADVANCE playbook for an autonomous AI engineer — how to move a product forward once it is healthy: product strategy…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/prototype/SKILL.md · Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model…
devantler-tech/agent-plugins · plugins/agentic-engineering/skills/self-improvement/SKILL.md · How an autonomous AI engineer improves its OWN definition (its engineering contract, agent definitions, and skills)…
devantler-tech/agent-plugins · plugins/engineering-practices/skills/conventional-release/SKILL.md · Ship changes through a squash-merge + Conventional Commits release pipeline where the PR title becomes the release note…
trailofbits/skills · plugins/gh-cli/skills/gh-cli/SKILL.md · Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch, and MCP fetch patterns. Use when working…
higoralves/orc · orc/skills/gh-cli/SKILL.md · GitHub CLI (gh) reference for repos, issues, PRs, Actions, releases, gists, projects, codespaces, and the API
oleg-koval/agent-skills · plugins/olko-git-tools/skills/gh-cli/SKILL.md · Reach for the GitHub CLI (gh) to do something on GitHub from the command line: repositories, issues, pull requests…
oleg-koval/agent-skills · adapters/cursor/olko-git-tools/skills/gh-cli/SKILL.md · Reach for the GitHub CLI (gh) to do something on GitHub from the command line: repositories, issues, pull requests…
oleg-koval/agent-skills · adapters/grok/olko-git-tools/skills/gh-cli/SKILL.md · Reach for the GitHub CLI (gh) to do something on GitHub from the command line: repositories, issues, pull requests…