Skip to content

Commit 3aa9d95

Browse files
authored
gh-gpg-key: add page (#18163)
* gh-gpg-key: add page * gh-gpg-key: use path syntax in placeholder
1 parent 9795973 commit 3aa9d95

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pages/common/gh-gpg-key.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# gh gpg-key
2+
3+
> Manage GPG keys registered with the authorized GitHub account.
4+
> See also: `gpg`.
5+
> More information: <https://cli.github.com/manual/gh_gpg-key>.
6+
7+
- List GPG keys in the authorized GitHub account:
8+
9+
`gh gpg-key {{[ls|list]}}`
10+
11+
- Add a GPG key to the authorized GitHub account by specifying the key file:
12+
13+
`gh gpg-key add {{path/to/key_file}}`
14+
15+
- Add a GPG key to the authorized GitHub account by specifying the key ID:
16+
17+
`gpg {{[-a|--armor]}} --export {{key_id}} | gh gpg-key add -`
18+
19+
- Delete a GPG key from the authorized GitHub account:
20+
21+
`gh gpg-key delete {{key_id}}`

0 commit comments

Comments
 (0)