mw gitlab variable set
Releasev0.35.0 · cfeceb67
mw gitlab variable set <key> <value> [flags]Create a new variable for a project or group.
Options
Section titled “Options”Global options
Section titled “Global options”Examples
Section titled “Examples”$ glab variable set WITH_ARG "some value"$ glab variable set WITH_DESC "some value" --description "some description"$ glab variable set FROM_FLAG -v "some value"$ glab variable set FROM_ENV_WITH_ARG "${ENV_VAR}"$ glab variable set FROM_ENV_WITH_FLAG -v"${ENV_VAR}"$ glab variable set FROM_FILE < secret.txt$ cat file.txt | glab variable set SERVER_TOKEN$ cat token.txt | glab variable set GROUP_TOKEN -g mygroup --scope=prodSee also
Section titled “See also”Page views: —Sessions: —