Skip to main content

GitHub CLI Cheatsheet

GitHub CLI lets you do everything on GitHub from the terminal: clone, create PRs, review code, manage issues, trigger Actions, publish releases.

Updated: 2026-07-20·21 commands

Quick Start

``bash gh auth login # Log in gh repo clone cli/cli # Clone repo gh repo create my-project --public gh pr create --fill # Create PR from commits gh pr list --state open # List open PRs gh issue list --label bug # List bug issues gh run list --limit 5 # List Actions runs gh release download v1.0 --pattern '*.tar.gz' ``

Startup & Modes(21)

CommandLevel
gh --help
Show gh help
Basic
gh auth login
Log in to GitHub account
Basic
gh auth status
Check auth status
Basic
gh repo clone
Clone a repository locally
Basic
gh repo create
Create a new repo (local + remote)
Basic
gh repo fork
Fork a repository
Basic
gh pr create
Create a Pull Request
Basic
gh pr list
List Pull Requests
Basic
gh pr checkout
Check out a PR locally
Basic
gh pr review
Submit a PR review
Intermediate
gh pr merge
Merge a PR
Intermediate
gh issue list
List Issues
Basic
gh issue create
Create an Issue
Basic
gh issue close
Close an Issue
Basic
gh run list
List Actions workflow runs
Intermediate
gh run watch
Watch Actions run logs in real-time
Intermediate
gh release list
List releases
Basic
gh release download
Download release assets
Intermediate
gh gist create
Create a Gist
Basic
gh search repos
Search repositories
Intermediate
gh config set
Set git config
Intermediate

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.