GH(1) GitHub CLI manual GH(1)

gh - GitHub CLI

gh <command> <subcommand> [flags]

Work seamlessly with GitHub from the command line.

Authenticate gh and git with GitHub

Open the repository in the browser

Connect to and manage codespaces

Manage gists

Manage issues

Manage organizations

Manage pull requests

Work with GitHub Projects.

Manage releases

Manage repositories

Manage Github Actions caches

View details about workflow runs

View details about GitHub Actions workflows

Create command shortcuts

Make an authenticated GitHub API request

Generate shell completion scripts

Manage configuration for gh

Manage gh extensions

Manage GPG keys

Manage labels

View info about repo rulesets

Search for repositories, issues, and pull requests

Manage GitHub secrets

Manage SSH keys

Print information about relevant issues, pull requests, and notifications across repositories

Manage GitHub Actions variables

Show gh version

$ gh issue create
$ gh repo clone cli/cli
$ gh pr checkout 321
Nov 2024