Authors: | Created: 2022-08-12 | Last update: 2026-07-14
GitHub CLI Cheat Sheet¶
GitHub CLI is a free and open source command-line tool for working with GitHub repositories. It can manage GitHub workflows from the terminal and open repository pages in a browser.
Installation¶
Follow the official installation instructions, or install GitHub CLI with Homebrew on macOS:
brew install gh
Repository Commands¶
View the repository remotely.
gh repo view --web
Create a pull request remotely.
gh pr create --web