Official GitHub CLI for managing pull requests, issues, and repositories from the terminal
GitHub CLI (gh) is the official command-line interface for GitHub, enabling developers to manage pull requests, issues, and repositories directly from the terminal alongside their existing git workflow. The tool provides access to GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+ environments across macOS, Windows, and Linux platforms.
The CLI operates as a standalone tool rather than a git proxy, offering commands for creating and reviewing pull requests, managing issues, cloning repositories, and performing other GitHub operations without leaving the command line. It integrates with GitHub Actions workflows and supports GitHub Codespaces through devcontainer configuration.
GitHub CLI includes build provenance attestation starting from version 2.50.0, providing cryptographic verification of binary authenticity through Sigstore PKI. The tool comes pre-installed on GitHub-hosted runners and can be verified using either the gh at verify command or Sigstore's cosign utility. This makes it suitable for developers working in CI/CD environments who need verifiable GitHub integration tools.
# via Homebrew
brew install gh
# via WinGet
winget install GitHub.cli
