.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-variable-update - Update an existing variable for a project or group. .SH SYNOPSIS \fBglab variable update [flags]\fP .SH DESCRIPTION You can pass the variable value from standard input. Use \fB--group\fR to update a variable for a group instead of the current project. The \fB--scope\fR flag does not apply to group variables. .SH OPTIONS \fB-d\fP, \fB--description\fP="" Set description of a variable. .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. Values: 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 \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX 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 .EE .SH SEE ALSO \fBglab-variable(1)\fP