GH-SSH-KEY(1)
π GH-SSH-KEY(1) β the ssh key glow-up
okay bestie, welcome to gh-ssh-key, straight out of the GitHub CLI manual (that's the GH-SSH-KEY(1) situation, iykyk). this is the little command family that handles the SSH keys living on your GitHub account. yes, those keys. the ones you keep forgetting to rotate. π
β¨ NAME β¨
gh-ssh-key β manage SSH keys. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
gh ssh-key <command> [flags]
so it's a command-with-a-command situation β you always pick a subcommand first, then throw your [flags] at it. no lone-wolf typing here. π
π¦ DESCRIPTION π¦
gh-ssh-key manages the SSH keys that are registered with your GitHub account. adding them, deleting them, listing them β the whole little ecosystem. lowkey essential if you're pushing over SSH and want your account to actually recognize you. π
π AVAILABLE COMMANDS π
gh-ssh-key-add(1)β adds an SSH key to your GitHub account. new key, who dis. β¨gh-ssh-key-delete(1)β deletes an SSH key from your GitHub account. bye bestie, we hardly knew ye. πgh-ssh-key-list(1)β lists the SSH keys in your GitHub account. the vibe check of your key collection. π
π EXIT CODES π
the way that exit codes tell you exactly what went down β obsessed. here's the whole little roster:
0β successful execution. slay, it worked. π1β error. something went sideways, no cap. π2β command canceled. not me backing out mid-command. π4β authentication required. bestie you gotta log in first, fr fr. π
NOTE: specific commands may have their own additional exit codes, so peep that command's help for the full tea. don't assume0β4is the entire story, okay? π
π«Ά SEE ALSO π«Ά
gh(1)β the main character. start there if you're lost. π
and that's a wrap, babe π β this little page came to you from the GitHub CLI, version v2.102.0, dated Oct 2026. go forth and manage those keys responsibly. β
π¦ 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