glab(1)
β¨ glab-ci-lint β the vibe check for your .gitlab-ci.yml β¨
okay so real talk: this is the glab manual, and the specific little guy we're talking about is glab-ci-lint β the command that tells you whether your .gitlab-ci.yml file is actually valid or just... vibes. π
πΈ NAME πΈ
glab-ci-lint β bestie, it checks if your .gitlab-ci.yml file is valid. that's it. that's the whole job. and it ATE. π₯
π¦ SYNOPSIS π¦
glab ci lint [flags]
π DESCRIPTION π
so by default it looks at the .gitlab-ci.yml file chillin' in your current directory. no arguments needed, it just knows. π«Ά
you can also pass a URL if you wanna validate a remote file instead β iconic, honestly. and then there's --dry-run which lets you simulate pipeline creation (like a rehearsal, but for your CI), plus --ref to set the branch or tag context for that simulation. lowkey essential. β¨
π OPTIONS π
--dry-run[=false]β runs a pipeline creation simulation. like a dress rehearsal for your pipeline, no cap. π--include-jobs[=false]β includes the list of jobs that would exist in a static check or pipeline simulation. so you can see exactly which jobs would show up. π--ref=""β when--dry-runistrue, this sets the branch or tag context for validating the CI/CD YAML configuration. defaults to"". π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β shows help for this command. when you're lost, this is your emotional support flag. π-R,--repo=""β selects another repository. you can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO, and the full URL or Git URL is also accepted. flexible queen. π
β EXAMPLE β
# 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
like, look at that. first one's the lazy girl method (valid, respected), the rest are for when you wanna be β¨specificβ¨. π
π§ SEE ALSO π§
glab-ci(1)β the parent command, the main character, the one who raised this icon. π«
ngl if your YAML is broken this command will simply tell you. it's giving tough love but make it helpful. π«Ά
okay that's the whole page!! and for the cute sign-off: this lil masterpiece was auto generated by spf13/cobra, dated Nov 2026, and it belongs to the glab(1) manual. periodt. π
β¨π
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms