← Back to registry

GitHub CLI dev

GitHub's official CLI for PRs, issues, repos, and more

gh is GitHub’s official command-line tool. It brings pull requests, issues, repos, gists, and GitHub Actions to your terminal. Essential for any developer workflow that touches GitHub.

Features

Install

brew: brew install gh
apt: sudo apt install gh
winget: winget install GitHub.cli

Commands

CommandSyntaxDescription
pr create gh pr create --title <title> --body <body> Create a new pull request
issue list gh issue list List issues in the current repository
repo clone gh repo clone <owner/repo> Clone a GitHub repository

Links

Agent Usage Example

Use cases:

Example workflow:

gh issue list --label bug --state open && gh pr create --title 'Fix: resolve crash' --body 'Fixes #42'