Socotra
CLI · command

socotra validate

Validate socotra.yaml without touching the filesystem.


Synopsis

socotra validate [--output text|json]

Options

OptionTypeDefaultDescription
--outputtext | jsontextOutput format

Exit codes

CodeMeaning
0YAML is valid
1YAML is invalid or not found

Examples

socotra validate
socotra validate --output json
socotra validate -d ./my-project -c ./custom-socotra.yaml

JSON output (success):

{
  "valid": true,
  "errors": []
}

JSON output (failure):

{
  "valid": false,
  "errors": ["SCT-001: Missing required field 'solution.name'"]
}
Schema 1.1 · CLI 1.0