glab ci lint .gitlab-ci.yml

Category: GitLab

glab ci lint .gitlab-ci.yml

Validate a CI configuration file

Checks the CI config file (gitlab-ci.yml) for syntax and logic errors before you push, showing warnings and the resolved job list. Add --dry-run to simulate what the pipeline would look like. The command accepts a path or a URL to a remote file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.