GitHub's official command line tool for pull requests, issues, and more
GitHub CLI (gh) is the official command-line interface for GitHub that brings the platform's core functionality directly to your terminal. It allows developers to manage pull requests, issues, repositories, and other GitHub features without leaving their command-line environment where they're already working with git and code.
The tool provides a comprehensive set of commands for common GitHub workflows, including creating and reviewing pull requests, managing issues, handling releases, and interacting with GitHub Actions. Unlike the previous unofficial tool hub which acted as a proxy to git, gh is designed as a standalone tool with its own command structure and interface.
GitHub CLI is designed for developers who prefer working in the terminal and want to streamline their GitHub workflows without constantly switching between the command line and web browser. It supports GitHub.com, GitHub Enterprise Cloud, and GitHub Enterprise Server 2.20+, making it suitable for both open-source developers and enterprise teams across macOS, Windows, and Linux platforms.
# via Homebrew
brew install gh
# via Debian/Ubuntu
sudo apt install gh
# via WinGet
winget install --id GitHub.cli
