Skip to content
Commitpedia
Log in Join & edit

GitHub CLI (gh)

GitHub's official command-line tool. Create and check out pull requests, manage issues, view Actions runs, and sign in to GitHub from the terminal.

Edit history of GitHub CLI (gh): 1 recorded edit
Edit history · 1 edit
Type
Repo
Edits
1
Editors
1
First issued
15 Oct 2026
Last edit
15 Oct 2026
Source
cli/cli

cli/cli

Stars
46.7k
Forks
9.2k
Language
Go
Licence
MIT
Last push
15 Oct 2026

On GitHub: GitHub’s official command line tool

Open on GitHub

gh brings GitHub features into the terminal next to Git. Git handles commits and branches; gh handles things that only exist on GitHub, such as pull requests, issues, releases, and workflow runs.

A few commands cover most daily use: gh auth login to sign in (it can also set Git up to use those credentials over HTTPS), gh pr create to open a pull request from the current branch, gh pr checkout 123 to test someone else’s PR locally, gh pr status for an overview, and gh run watch to follow a GitHub Actions run.

gh api calls any GitHub REST or GraphQL endpoint with your login, which makes small automation scripts easy. Install instructions for each platform are linked from the README.

See also

  • 0038 The pull request workflow on GitHub A pull request asks to merge your branch into another one, with review and automated checks in between. This is the whole… Beginner · How-to · Any system Article Pull requests 15 Oct 2026
  • 0044 A starter set of Git aliases Short names for the Git commands you type all day, such as a one-line status, a graph log, and a safe force… Beginner · Reference · Linux, macOS, Windows Script Git tools 15 Oct 2026
  • 0262 Make your first pull request: Git and GitHub from first commit to merged change A complete beginner's path through Git and GitHub: set up Git, make commits, ignore files, use branches, push to GitHub, open a… Beginner · Tutorial · Any system Article Branching & rebasing · Pull requests · Setup 15 Oct 2026

History

Every saved edit is kept. The plot on the sleeve draws one line per edit. Open any edit to see exactly what changed.

  1. commitpedia-admin +695 chars

Report a problem

Something wrong, unsafe or copied? Tell the editors.
What is wrong?