We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9795973 commit 3aa9d95Copy full SHA for 3aa9d95
pages/common/gh-gpg-key.md
@@ -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