← Back to tools

GitHub CLI

GitHub's official command-line tool for seamless workflow

Version Control Development linuxmacoswindows Go MIT

Description

gh is the official GitHub CLI. It brings pull requests, issues, releases, Actions, and other GitHub features to the terminal. It enables a complete GitHub workflow without leaving the command line.

Install

homebrewbrew install gh
aptsudo apt install gh
pacmansudo pacman -S github-cli

AI Summary

GitHub's official CLI. Manage pull requests, issues, releases, Actions, and repositories from the terminal with full GitHub API access.

Capabilities

  • + Create and manage pull requests and issues
  • + Trigger and view GitHub Actions workflows
  • + Browse and clone repositories
  • + Full GitHub API access via gh api

Use When

  • Managing GitHub PRs, issues, and releases from the terminal
  • Automating GitHub workflows in scripts
  • Need quick access to the GitHub API

Avoid When

  • x Working with non-GitHub remotes (GitLab, Bitbucket)

Usage Patterns

Create a pull request

gh pr create --fill

Creates a PR with title and body from commit messages

View PR checks

gh pr checks

Shows CI/CD check status for the current PR

Related Tools

View AGENTS.md for GitHub CLI