.nh .TH "glab" "1" "Apr 2024" "Auto generated by spf13/cobra" "" .SH NAME .PP glab-variable-update - Update an existing project or group variable .SH SYNOPSIS .PP \fBglab variable update [flags]\fP .SH DESCRIPTION .PP Update an existing project or group variable .SH OPTIONS .PP \fB-g\fP, \fB--group\fP="" Set variable for a group .PP \fB-m\fP, \fB--masked\fP[=false] Whether the variable is masked .PP \fB-p\fP, \fB--protected\fP[=false] Whether the variable is protected .PP \fB-r\fP, \fB--raw\fP[=false] Whether the variable is treated as a raw string .PP \fB-s\fP, \fB--scope\fP="\fI" The environment_scope of the variable. All (\fP), or specific environments .PP \fB-t\fP, \fB--type\fP="env_var" The type of a variable: {env_var|file} .PP \fB-v\fP, \fB--value\fP="" The value of a variable .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB--help\fP[=false] Show help for command .PP \fB-R\fP, \fB--repo\fP="" Select another repository using the \fB\fCOWNER/REPO\fR or \fB\fCGROUP/NAMESPACE/REPO\fR format or full URL or git URL .SH EXAMPLE .PP .RS .nf glab variable update WITH_ARG "some value" glab variable update FROM_FLAG -v "some value" glab variable update FROM_ENV_WITH_ARG "${ENV_VAR}" glab variable update FROM_ENV_WITH_FLAG -v"${ENV_VAR}" glab variable update FROM_FILE < secret.txt cat file.txt | glab variable update SERVER_TOKEN cat token.txt | glab variable update GROUP_TOKEN -g mygroup --scope=prod .fi .RE .SH SEE ALSO .PP \fBglab-variable(1)\fP