gh gpg-key
all
Manage GPG keys registered with the authorized GitHub account. See also: `gpg`.
More info →Options (2)
booleanList GPG keys in the authorized GitHub account
Example:
gh gpg-key {{[ls|list]}}-a, --armorbooleanAdd a GPG key to the authorized GitHub account by specifying the key ID
Example:
gpg {{[-a|--armor]}} --export {{key_id}} | gh gpg-key add -Examples (4)
List GPG keys in the authorized GitHub account
gh gpg-key [ls|list]Add a GPG key to the authorized GitHub account by specifying the key file
gh gpg-key add path/to/key_fileAdd a GPG key to the authorized GitHub account by specifying the key ID
gpg [-a|--armor] --export key_id | gh gpg-key add -Delete a GPG key from the authorized GitHub account
gh gpg-key delete key_idmade by @shridhargupta | data from tldr-pages