1glab(1) glab(1)
2
3
4
6 glab-variable-set - Create a new project or group variable
7
8
9
11 glab variable set [flags]
12
13
14
16 Create a new project or group variable
17
18
19
21 -g, --group="" Set variable for a group
22
23
24 -m, --masked[=false] Whether the variable is masked
25
26
27 -p, --protected[=false] Whether the variable is protected
28
29
30 -r, --raw[=false] Whether the variable is treated as a raw string
31
32
33 -s, --scope="" The environment_scope of the variable. All (), or
34 specific environments
35
36
37 -t, --type="env_var" The type of a variable: {env_var|file}
38
39
40 -v, --value="" The value of a variable
41
42
43
45 --help[=false] Show help for command
46
47
48 -R, --repo="" Select another repository using the OWNER/REPO or
49 GROUP/NAMESPACE/REPO format or full URL or git URL
50
51
52
54 glab variable set WITH_ARG "some value"
55 glab variable set FROM_FLAG -v "some value"
56 glab variable set FROM_ENV_WITH_ARG "${ENV_VAR}"
57 glab variable set FROM_ENV_WITH_FLAG -v"${ENV_VAR}"
58 glab variable set FROM_FILE < secret.txt
59 cat file.txt | glab variable set SERVER_TOKEN
60 cat token.txt | glab variable set GROUP_TOKEN -g mygroup --scope=prod
61
62
63
64
65
67 glab-variable(1)
68
69
70
71Auto generated by spf13/cobra Nov 2023 glab(1)