CLI reference/Schema and validation/schema
clavis schema infer
Suggest a schema from the current environment
sh
clavis schema infer [flags]Suggest a schema from the current environment. The output has types and kinds, never values. Review it before you push.
Examples
sh
clavis schema infer
clavis schema infer -o clavis.schema.yaml
clavis schema infer --pushFlags
-o, --out string- output file (default stdout)
--push- upload the inferred schema instead of printing it
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