1glab(1) glab(1)
2
3
4
6 glab-ssh-key-add - Add an SSH key to your GitLab account
7
8
9
11 glab ssh-key add [key-file] [flags]
12
13
14
16 Creates a new SSH key owned by the currently authenticated user.
17
18
19 The --title flag is always required
20
21
22
24 -e, --expires-at="" The expiration date of the SSH key in ISO 8601
25 format (YYYY-MM-DDTHH:MM:SSZ)
26
27
28 -t, --title="" New SSH key's title
29
30
31
33 --help[=false] Show help for command
34
35
36 -R, --repo="" Select another repository using the OWNER/REPO or
37 GROUP/NAMESPACE/REPO format or full URL or git URL
38
39
40
42 # Read ssh key from stdin and upload
43 $ glab ssh-key add -t "my title"
44
45 # Read ssh key from specified key file and upload
46 $ glab ssh-key add ~/.ssh/id_ed25519.pub -t "my title"
47
48
49
50
51
53 glab-ssh-key(1)
54
55
56
57Auto generated by spf13/cobra Nov 2023 glab(1)