GitHub CLI
GitHub from the command line.
Official CLI to create PRs, manage issues, browse repos, run workflows, and more — without leaving the terminal.
About GitHub CLI
GitHub CLI (gh) is the official command-line tool for GitHub, bringing the full GitHub experience to your terminal. With it you can create and review pull requests, manage issues, check workflow runs, clone repos, create gists, manage releases, and perform nearly every GitHub action without opening a browser.
The `gh pr create` command drafts a PR with the current branch, fills in the template, sets reviewers, and opens it — all in seconds. `gh run watch` streams CI logs in real-time in your terminal. `gh issue list` and `gh issue create` bring issue management to the terminal too.
GitHub CLI also supports GitHub Copilot in the CLI, letting you ask `gh copilot explain` and `gh copilot suggest` to get AI-generated explanations and command suggestions. For developers who want to maximize time in the terminal, gh is essential.