commands.sh

gh ssh-key

all

Manage GitHub SSH keys.

More info →

Options (2)

boolean

List SSH keys for the currently authenticated user

Example: gh ssh-key {{[ls|list]}}
-t, --titleboolean

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

Example: gh ssh-key add {{[-t|--title]}} {{title}} {{path/to/key.pub}}

Examples (4)

List SSH keys for the currently authenticated user

gh ssh-key [ls|list]

Add an SSH key to the currently authenticated user's account

gh ssh-key add path/to/key.pub

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

gh ssh-key add [-t|--title] title path/to/key.pub

Display help

made by @shridhargupta | data from tldr-pages