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 assume 0–4 is 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