lokl validate
Check your config file for errors without starting any services.
lokl validate [flags]| Flag | Description |
|---|---|
-c, --config | Config file path (default: lokl.yaml) |
Examples
Section titled “Examples”Validate default config:
lokl validate# ✓ lokl.yaml is validValidate custom config:
lokl validate -c staging.yamlWhat it checks
Section titled “What it checks”- YAML syntax
- Environment file resolution and variable interpolation
- Required fields (service name, command or image)
- Port conflicts (duplicate ports across services)
- Dependency resolution (unknown or circular dependencies)
- Port mapping format (for Docker services)
CI usage
Section titled “CI usage”Add to your CI pipeline to catch config errors early:
- name: Validate lokl config run: lokl validate