GH-SSH-KEY-ADD(1)

πŸ’– NAME πŸ’–

okay so bestie, this is gh-ssh-key-add, and the manual page you're reading is GH-SSH-KEY-ADD(1) β€” it's literally the glow-up for adding an SSH key to your GitHub account. no cap, that's the whole main character job. πŸ’…


✨ SYNOPSIS ✨

here's the exact shape of the command, bestie β€” copy it exactly, don't freestyle the flags:

gh ssh-key add [<key-file>] [flags]

πŸŽ€ OPTIONS πŸŽ€

  • -t, --title <string> β€” this one gives your new key a title, slay πŸŽ€
  • --type <string> β€” type of the ssh key: {authentication|signing}; default is "authentication" ✨

πŸ¦‹ EXIT CODES πŸ¦‹

  • 0: Successful execution β€” ate πŸ’…
  • 1: Error β€” not the vibe 😭
  • 2: Command canceled β€” okay, we can stop, periodt
  • 4: Authentication required β€” bestie, you gotta log in first πŸ”
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

🌸 SEE ALSO 🌸

  • gh-ssh-key(1) β€” go check out the sibling page, iykyk πŸ‘‘

mwah πŸ’‹ β€” this cutie came from GitHub CLI v2.102.0, dated Oct 2026, and that's the whole sign-off, fr fr 🌈🫢

πŸ“¦ where this page comes from