1GH-REPO-DEPLOY-KEY-ADD(1)      GitHub CLI manual     GH-REPO-DEPLOY-KEY-ADD(1)
2
3
4

NAME

6       gh-repo-deploy-key-add - Add a deploy key to a GitHub repository
7
8
9

SYNOPSIS

11       gh repo deploy-key add <key-file> [flags]
12
13
14

DESCRIPTION

16       Add a deploy key to a GitHub repository.
17
18
19       Note  that  any key added by gh will be associated with the current au‐
20       thentication token.  If you de-authorize the GitHub CLI app or  authen‐
21       tication  token  from your account, any deploy keys added by GitHub CLI
22       will be removed as well.
23
24
25

OPTIONS

27       -w, --allow-write
28              Allow write access for the key
29
30
31       -t, --title <string>
32              Title of the new key
33
34
35

OPTIONS INHERITED FROM PARENT COMMANDS

37       -R, --repo <[HOST/]OWNER/REPO>
38              Select another repository using the [HOST/]OWNER/REPO format
39
40
41

EXAMPLE

43              # generate a passwordless SSH key and add it as a deploy key to a repository
44              $ ssh-keygen -t ed25519 -C "my description" -N "" -f ~/.ssh/gh-test
45              $ gh repo deploy-key add ~/.ssh/gh-test.pub
46
47
48
49
50

SEE ALSO

52       gh-repo-deploy-key(1)
53
54
55
56                                   Oct 2023          GH-REPO-DEPLOY-KEY-ADD(1)
Impressum