> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# stackkit validate

> Validate configuration files

Validate configuration files.

Validate spec files and CUE schemas.

```text theme={null}
This command validates:
  • stack-spec.yaml against the schema
  • StackKit CUE definitions
  • OpenTofu configuration files
```

```bash theme={null}
stackkit validate [file] [flags]
```

| Flag    | Type | Default | Description                      |
| ------- | ---- | ------- | -------------------------------- |
| `--all` | bool | —       | Validate all configuration files |

**Examples**

```bash theme={null}
# 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
```
