Skip to content

validate

Validate your infrastructure config file without making any cloud API calls. Catches structural errors, invalid resource types, and missing required fields.

Terminal window
kyku validate [options]
Flag Default Description
-c, --config <path> ./infrastructure.ts Path to config file
-e, --env <environment> default Environment workspace
-p, --passphrase <phrase> Passphrase for encrypted state
Terminal window
# Validate the default config
kyku validate
# Validate a specific config file
kyku validate --config=./staging.ts
# Validate with environment
kyku validate --env=prod
Code Meaning
0 Config is valid
1 General error
2 Validation error