Add an SSH key to the currently authenticated user's account with a specific title

gh ssh-key

  • Manage GitHub SSH keys from the command-line.
    More information: <https://cli.github.com/manual/gh_ssh-key>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gh ssh-key add --title {{title}} {{path/to/key.pub}}

click the source code to copy install gh ssh-key on any operating system with command-not-found.com