.nh .TH "glab" "1" "Jul 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-ci-get - Get the details of a CI/CD pipeline. .SH SYNOPSIS \fBglab ci get [flags]\fP .SH DESCRIPTION Defaults to the current branch. Use \fB--pipeline-id\fR to specify a pipeline instead of fetching the latest for a branch. .PP Use \fB--merge-request\fR to target the head pipeline of a specific merge request by IID. This differs from \fB--branch\fR when the MR's head pipeline diverges from the latest pipeline on its source branch — for example, forks or detached pipelines. .PP Use \fB--status\fR to filter jobs by state (passed through to the API's \fBscope\fR parameter). .PP Use \fB--output json\fR to get the pipeline details as JSON. .SH OPTIONS \fB-b\fP, \fB--branch\fP="" Get the pipeline for a branch. Defaults to the current branch. .PP \fB--jq\fP="" Filter JSON output with a jq expression. .PP \fB--merge-request\fP=0 Show the pipeline for the given merge request \&. .PP \fB-F\fP, \fB--output\fP="text" Format output. Options: text, json. .PP \fB-p\fP, \fB--pipeline-id\fP=0 Get the pipeline with the given \&. .PP \fB-s\fP, \fB--status\fP="" Show only jobs in the given state. Passed through to the API's scope parameter. .PP \fB-d\fP, \fB--with-job-details\fP[=false] Show extended job information. .PP \fB--with-variables\fP[=false] Show variables in pipeline. Requires the Maintainer role. .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 # Get the pipeline for the current branch glab ci get # Get a specific pipeline by ID in another project glab ci get -R some/project -p 12345 # Show only failed jobs for the head pipeline of MR !42 glab ci get --merge-request=42 --status=failed --with-job-details .EE .SH SEE ALSO \fBglab-ci(1)\fP