Scroll to navigation

GH(1) GitHub CLI manual GH(1)

NAME

gh - GitHub CLI

SYNOPSIS

gh <command> <subcommand> [flags]

DESCRIPTION

Work seamlessly with GitHub from the command line.

CORE COMMANDS

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

GITHUB ACTIONS COMMANDS

Manage Github Actions caches

View details about workflow runs

View details about GitHub Actions workflows

ADDITIONAL COMMANDS

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

OPTIONS

Show gh version

EXAMPLE

$ gh issue create
$ gh repo clone cli/cli
$ gh pr checkout 321
Jan 2025