This command validates:
• stack-spec.yaml against the schema
• StackKit CUE definitions
• OpenTofu configuration files
stackkit validate [file] [flags]
| Flag | Type | Default | Description |
|---|---|---|---|
--all | bool | — | Validate all configuration files |
# Validate stack-spec.yaml in the current directory
stackkit validate
# Validate another StackSpec file before replacing stack-spec.yaml with it
stackkit validate candidate-stack-spec.yaml
# Also validate CUE schemas in the working directory
stackkit validate --all
