GH-GPG-KEY-ADD(1)
π GH-GPG-KEY-ADD(1) β the GitHub CLI manual, bestie edition π
okay so real quick, this is a page from the GitHub CLI manual, and it's literally all about adding a GPG key to your GitHub account. yes. that's the whole vibe. let's go π
β¨ NAME β¨
gh-gpg-key-add β add a GPG key to your GitHub account π
like, it takes your key and puts it on your account. iconic behavior, no cap.
πΈ SYNOPSIS πΈ
gh gpg-key add [<key-file>] [flags]
so you run gh gpg-key add, you optionally hand it key-file, and you can sprinkle flags on top. that's the whole thing π«Ά
π OPTIONS π
-t,--title <string>β the title for the new key. give it a name, bestie, so future-you knows what it is π·οΈ
β EXIT CODES β
okay so when the command finishes, the exit code tells you the tea β here's the whole menu:
0β successful execution! slay, it worked π1β error π something went wrong2β command canceled π you (or something) backed out4β authentication required π like, log in first, bestie
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. fr fr, always check the specific command's own help π
π¦ SEE ALSO π¦
gh-gpg-key(1)β the parent command, go check it out π§
and that's the page!! π this was written for GitHub CLI v2.102.0, dated Oct 2026 β so if you're reading this from the future, hi, you're gorgeous, and please check if things changed πβ¨
π¦ 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