Skip to main content

validate

Check a configuration file before you run it. validate parses the manifest, resolves the dependency graph, and — when something is wrong — tells you the exact line, why it’s an error, and how to fix it.
A clean file reports success and exits 0:

Options

What it checks

  • Schema — version 2, services in each declared project or loose bundle, and a command per service.
  • Syntax — YAML that parses, with a caret pointing at the offending token.
  • Health checks — every deployment.health_check has a url or a command.
  • Dependenciesdepends_on references exist and form no cycle.
  • Project id — every named project has a valid, non-empty id.
  • Environment${VAR} interpolations resolve from the environment or env file.

Exit codes

JSON output

Use --format json for CI gates and tooling. Each diagnostic carries its location, category, message, and remediation:

Example

Gate a deploy on a valid manifest:

See also

  • Configuration - Full manifest reference
  • start - Launch a validated manifest
  • status - Check services once they’re running