.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-ci-lint - Check if your \fB\&.gitlab-ci.yml\fR file is valid. .SH SYNOPSIS \fBglab ci lint [flags]\fP .SH DESCRIPTION Defaults to the \fB\&.gitlab-ci.yml\fR file in the current directory. You can also pass a URL to validate a remote file. Use \fB--dry-run\fR to simulate pipeline creation, and \fB--ref\fR to set the branch or tag context for the simulation. .SH OPTIONS \fB--dry-run\fP[=false] Run pipeline creation simulation. .PP \fB--include-jobs\fP[=false] Include the list of jobs that would exist in a static check or pipeline simulation. .PP \fB--ref\fP="" When '--dry-run' is true, sets the branch or tag context for validating the CI/CD YAML configuration. .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 # Uses .gitlab-ci.yml in the current directory glab ci lint # Lint a specific file glab ci lint .gitlab-ci.yml glab ci lint path/to/.gitlab-ci.yml .EE .SH SEE ALSO \fBglab-ci(1)\fP