Skip to content

lokl validate

Check your config file for errors without starting any services.

Terminal window
lokl validate [flags]
FlagDescription
-c, --configConfig file path (default: lokl.yaml)

Validate default config:

Terminal window
lokl validate
# ✓ lokl.yaml is valid

Validate custom config:

Terminal window
lokl validate -c staging.yaml
  • 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)

Add to your CI pipeline to catch config errors early:

- name: Validate lokl config
run: lokl validate