GitHub CLI Cheat Sheet
Core GitHub CLI commands for auth, repository context, search, JSON output, and daily workflows.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Getting Started
## Formatting and JSON Output
## Search and Discovery
More in GitHub CLI
GitHub CLI Auth, Alias, and Config
Authentication, enterprise usage, aliases, extensions, completion, org secrets, and administrative helpers.
GitHub CLI Releases, Gists, and API
Release management, gist workflows, and direct REST or GraphQL automation with gh api.
GitHub CLI Issues and Actions
Issue triage plus GitHub Actions workflows, runs, secrets, variables, and caches.
GitHub CLI Repos and Pull Requests
Repository creation, forking, syncing, pull request creation, review, and merge workflows in GitHub CLI.