GH-GPG-KEY(1)
π NAME π
gh-gpg-key β the vibe check for your GPG keys, bestie π
Okay so real talk, this is one of those command groups β it's the umbrella, the main character, the parent of three little subcommands that do the actual work. Keep reading, it all makes sense in a sec π«Ά
β¨ SYNOPSIS β¨
gh gpg-key <command> [flags]
That's it. That's the whole shape of it β you say gh gpg-key, then you name which <command> you want, then you toss on whatever [flags] you're feeling π
πΈ DESCRIPTION πΈ
Manage GPG keys registered with your GitHub account.
Like β GPG keys are those cryptographic signing keys you use so GitHub can prove a commit or a tag actually came from you and not from some random imposter. This command group is your little control panel for the ones you've got hooked up to your account. Add 'em, delete 'em, list 'em. Very demure, very mindful π
π¦ AVAILABLE COMMANDS π¦
Girl, this is the menu. Pick your fighter π₯
gh-gpg-key-add(1)β Add a GPG key to your GitHub account β¨ like, you're introducing a new key to your profile. So exciting.gh-gpg-key-delete(1)β Delete a GPG key from your GitHub account π breaking up with a key. It happens.gh-gpg-key-list(1)β Lists GPG keys in your GitHub account π the "who's even on my account rn" check. Do this often, iykyk.
Not me reminding you that each of these has its own help page β if you wanna know the flags for one specific command, go read that one, bestie. This page is just the group chat, not the individual DMs π
π₯ EXIT CODES π₯
Every command tells you how it went down when it exits. Here's the legend, no cap:
0β Successful execution π ate and left no crumbs1β Error π something went wrong2β Command canceled π you (or something) backed out before it finished4β Authentication required π like, GitHub needs to know it's really you first
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. β¨ So don't come for this page if you see a number that's not on the list β check the individual command's --help and it'll fill you in, fr fr.
π SEE ALSO π
gh(1)β the big parent CLI itself π if you don't know her yet, start there
Go forth and sign your commits, icon. Your GPG keys are gonna look so good on your profile ππ§
βΏ GitHub CLI v2.102.0 βΏ Oct 2026 βΏ mwah, thanks for reading, ily βΏ
π¦ 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