OS Manuals

gh-ssh-key(1)

gh-ssh-key - Manage SSH keys

GH-SSH-KEY(1) GitHub CLI manual GH-SSH-KEY(1)

gh-ssh-key - Manage SSH keys

gh ssh-key <command> [flags]

Manage SSH keys registered with your GitHub account.

Add an SSH key to your GitHub account

Delete an SSH key from your GitHub account

Lists SSH keys in your GitHub account

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh(1)

Oct 2026

gh 2.103.2-r0 · os · ingested 2026-10-25