1glab(1) glab(1)
2
3
4
6 glab-auth-login - Authenticate with a GitLab instance
7
8
9
11 glab auth login [flags]
12
13
14
16 Authenticate with a GitLab instance. You can pass in a token on stan‐
17 dard input by using --stdin. The minimum required scopes for the token
18 are: api, write_repository.
19
20
21
23 -h, --hostname="" The hostname of the GitLab instance to authenti‐
24 cate with
25
26
27 --stdin[=false] Read token from standard input
28
29
30 -t, --token="" Your GitLab access token
31
32
33 --use-keyring[=false] Store token in your operating system's
34 keyring
35
36
37
39 --help[=false] Show help for command
40
41
42
44 # start interactive setup
45 $ glab auth login
46 # authenticate against `gitlab.com` by reading the token from a file
47 $ glab auth login --stdin < myaccesstoken.txt
48 # authenticate with a self-hosted GitLab instance
49 $ glab auth login --hostname salsa.debian.org
50
51
52
53
54
56 glab-auth(1)
57
58
59
60Auto generated by spf13/cobra Nov 2023 glab(1)