validate
Validate a spicepod.yaml without starting the runtime.
Checks YAML syntax and schema, component references, duplicate component names, reserved keywords, and nested pod includes (dependsOn).
Usage
spice validate [path]
path: Path to aspicepod.yamlfile or a directory containing one. Defaults to the current directory (.).
Flags
-h,--helpPrint this help message
Examples
Validate the spicepod in the current directory:
> spice validate
OK my_app (datasets: 2, models: 1, views: 0, tools: 0, workers: 0)
Validate a specific directory:
> spice validate ./my-app
OK my_app (datasets: 3, models: 0, views: 1, tools: 2, workers: 0)
Validate a specific file:
> spice validate path/to/spicepod.yaml
OK taxi_trips (datasets: 1, models: 0, views: 0, tools: 0, workers: 0)
When validation fails, the error describes the issue:
> spice validate ./broken-app
Invalid: spicepod validation failed: missing field `kind`
