gh
Official GitHub CLI tool for managing pull requests, issues, and repositories from the command line
GitHub CLI (gh) is the official command-line interface for GitHub, allowing developers to interact with GitHub repositories, pull requests, issues, and other GitHub features directly from the terminal. The tool operates alongside git and integrates GitHub workflows into existing development environments without requiring a web browser.
The CLI supports comprehensive GitHub operations including creating and reviewing pull requests, managing issues, handling releases, and repository administration. It works with GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+, providing cross-platform support for macOS, Windows, and Linux.
Unlike hub (the previous unofficial GitHub CLI), gh operates as a standalone tool rather than a git proxy, offering a fundamentally different architecture. The tool includes cryptographic verification of binaries through Build Provenance Attestation using Sigstore PKI, and comes pre-installed on GitHub-hosted Actions runners.
Installation
# via Homebrew
brew install gh
# via WinGet
winget install GitHub.cli

Alternatives & related tools
gitleaks
Detects secrets like passwords, API keys, and tokens in git repositories, files, and stdin input
git-lfs
Git extension for managing large files by storing them outside the repository with pointer files
gh-dash
Terminal UI for GitHub that lists configurable pull request and issue sections, with vim-style hotkeys, custom actions, and a YAML config file.
lazygit
Terminal UI for git commands with visual interface for staging, committing, branching, and repository management
soft-serve
Self-hostable Git server with SSH-accessible TUI for command-line repository management and browsing.
add a badge to your README
Maintain gh? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/gh?utm_source=badge)<a href="https://www.trmn.sh/tools/gh?utm_source=badge"><img src="https://www.trmn.sh/badge/gh.svg" alt="Featured on trmn" height="20"></a>