GH(1)
β¨ NAME β¨
so like, gh β the GitHub CLI, bestie π
(this whole thing lives in the GitHub CLI manual, and honestly? iconic.)
πΈ SYNOPSIS πΈ
gh <command> <subcommand> [flags]
that's it. that's the whole vibe check. command, subcommand, flags, go π«Ά
π¦ DESCRIPTION π¦
Work seamlessly with GitHub from the command line. literally just you, your terminal, and GitHub being besties. no browser tabs, no chaos, just vibes β¨
π CORE COMMANDS π
okay so these are the main characters. the ones you'll actually use every day. slay.
gh-auth(1)β Authenticate gh and git with GitHub π³ (log in, babes)gh-browse(1)β Open repositories, issues, pull requests, and more in the browser πgh-codespace(1)β Connect to and manage codespaces βοΈgh-discussion(1)β Work with GitHub Discussions (preview) π¬gh-gist(1)β Manage gists πgh-issue(1)β Manage issues πgh-org(1)β Manage organizations π’gh-pr(1)β Manage pull requests πgh-project(1)β Work with GitHub Projects. π (yes with the period, she's fancy)gh-release(1)β Manage releases πgh-repo(1)β Manage repositories π¦gh-skill(1)β Install and manage agent skills (preview) π§
π₯ GITHUB ACTIONS COMMANDS π₯
the CI/CD girlies. automation ate, no cap.
gh-cache(1)β Manage GitHub Actions caches ποΈgh-run(1)β View details about workflow runs πββοΈgh-workflow(1)β View details about GitHub Actions workflows βοΈ
π ADDITIONAL COMMANDS π
the supporting cast. still iconic. still ate. π
gh-agent-task(1)β Work with agent tasks (preview) π€gh-alias(1)β Create command shortcuts β‘gh-api(1)β Make an authenticated GitHub API request πgh-attestation(1)β Work with artifact attestations π§Ύgh-completion(1)β Generate shell completion scripts πgh-config(1)β Manage configuration forghπ οΈgh-copilot(1)β Run the GitHub Copilot CLI (preview) β¨gh-extension(1)β Manage gh extensions π§©gh-gpg-key(1)β Manage GPG keys πgh-label(1)β Manage labels π·οΈgh-licenses(1)β View third-party license information πgh-preview(1)β Execute previews for gh features πgh-ruleset(1)β View info about repo rulesets πgh-search(1)β Search for repositories, issues, and pull requests πgh-secret(1)β Manage GitHub secrets π€«gh-ssh-key(1)β Manage SSH keys ποΈgh-status(1)β Print information about relevant issues, pull requests, and notifications across repositories πgh-variable(1)β Manage GitHub Actions variables π·οΈ
π OPTIONS π
--versionβ Show gh version π (the "who am I" of flags)
π EXIT CODES π
ngl these matter, bestie. your scripts will be reading them. pay attention π
0β Successful execution β1β Error β2β Command canceled π4β Authentication required π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. (fr fr, always check the subcommand's own help β iykyk)
π EXAMPLE π
$ gh issue create
$ gh repo clone cli/cli
$ gh pr checkout 321
look at her go. three commands, zero stress, main character energy only π β¨
and that's the whole page, bestie π«Ά this beauty is GitHub CLI v2.102.0, dated Oct 2026 β go forth and gh your little heart out, mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms