CLI reference/Schema and validation
clavis check
Validate an environment against the project's secret schema
sh
clavis check [flags]Validate an environment against the project schema. Missing required keys, wrong types, pattern failures and invalid enum values are errors; missing optional keys and keys not in the schema are warnings.
Examples
sh
clavis check
clavis check --env productionEvery environment
sh
clavis check --allFlags
--all- check every environment in the project
Details
Exits with code 6 when a check fails, so clavis check --env production can gate a deploy in CI.
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command