.nh .TH "glab" "1" "Jan 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-ci-run - Create or run a new CI/CD pipeline. .SH SYNOPSIS \fBglab ci run [flags]\fP .SH DESCRIPTION The \fB--branch\fR option is available for all pipeline types. .PP The options for variables are incompatible with merge request pipelines. If used with merge request pipelines, the command fails with a message like \fBERROR: if any flags in the group [output output-format] are set none of the others can be\fR .PP Specify one or more pipeline inputs using the \fB-i\fR or \fB--input\fR flag for each input. Each input flag uses the format \fBkey:value\fR\&. .PP The values are typed and will default to \fBstring\fR unless a type is explicitly specified. To specify a type, use the \fBtype(value)\fR syntax. For example, \fBkey:string(value)\fR will pass the string \fBvalue\fR as the input. .PP Valid types are: .IP \(bu 2 \fBstring\fR: A string value. This is the default type. For example, \fBkey:string(value)\fR\&. .IP \(bu 2 \fBint\fR: An integer value. For example, \fBkey:int(42)\fR\&. .IP \(bu 2 \fBfloat\fR: A floating-point value. For example, \fBkey:float(3.14)\fR\&. .IP \(bu 2 \fBbool\fR: A boolean value. For example, \fBkey:bool(true)\fR\&. .IP \(bu 2 \fBarray\fR: An array of strings. For example, \fBkey:array(foo,bar)\fR\&. .PP An array of strings can be specified with a trailing comma. For example, \fBkey:array(foo,bar,)\fR will pass the array \fB[foo, bar]\fR\&. \fBarray()\fR specifies an empty array. To pass an array with the empty string, use \fBarray(,)\fR\&. .PP Value arguments containing parentheses should be escaped from the shell with quotes. For example, \fB--input key:array(foo,bar)\fR should be written as \fB--input 'key:array(foo,bar)'\fR\&. .SH OPTIONS \fB-b\fP, \fB--branch\fP="" Create pipeline on branch/ref \&. .PP \fB-i\fP, \fB--input\fP=[] Pass inputs to pipeline in format ':\&'. Cannot be used for merge request pipelines. See documentation for examples. .PP \fB--mr\fP[=false] Run merge request pipeline instead of branch pipeline. .PP \fB--variables\fP=[] Pass variables to pipeline in format :\&. Cannot be used for MR pipelines. .PP \fB--variables-env\fP=[] Pass variables to pipeline in format :\&. Cannot be used for MR pipelines. .PP \fB--variables-file\fP=[] Pass file contents as a file variable to pipeline in format :\&. Cannot be used for MR pipelines. .PP \fB-f\fP, \fB--variables-from\fP="" JSON file with variables for pipeline execution. Expects array of hashes, each with at least 'key' and 'value'. Cannot be used for MR pipelines. .PP \fB-w\fP, \fB--web\fP[=false] Open pipeline in a browser. Uses default browser, or browser specified in BROWSER environment 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. Can use either \fBOWNER/REPO\fR or \fBGROUP/NAMESPACE/REPO\fR format. Also accepts full URL or Git URL. .SH EXAMPLE .EX $ glab ci run $ glab ci run --variables \\"key1:value,with,comma\\" $ glab ci run -b main $ glab ci run --web $ glab ci run --mr # Specify CI variables $ glab ci run -b main --variables-env key1:val1 $ glab ci run -b main --variables-env key1:val1,key2:val2 $ glab ci run -b main --variables-env key1:val1 --variables-env key2:val2 $ glab ci run -b main --variables-file MYKEY:file1 --variables KEY2:some_value # Specify CI inputs $ glab ci run -b main --input key1:val1 --input key2:val2 $ glab ci run -b main --input "replicas:int(3)" --input "debug:bool(false)" --input "regions:array(us-east,eu-west)" // For an example of 'glab ci run -f' with a variables file, see // [Run a CI/CD pipeline with variables from a file](https://docs.gitlab.com/editor_extensions/gitlab_cli/#run-a-cicd-pipeline-with-variables-from-a-file) // in the GitLab documentation. .EE .SH SEE ALSO \fBglab-ci(1)\fP