Enable schemas in config
SetschemasDir in webstorio.config.ts (relative to the config file):
content, form_and_survey, app_data).
Folder layout
*.json file is one definition, upserted by key.
File shape
Forms may also use the dashboard export shape:
schemasDir notes: Configuration.
Commands
--prune (and webstorio push --prune-schemas) deletes remote schemas whose
keys are not present locally — use carefully.
Options reference: webstorio schema.
How this fits with push
When schemasDir is set:
webstorio pushsyncs pages/components/features/branding as usual.- Then it upserts local schemas (unless you manage them only with
webstorio schema push).
schemasDir is absent, remote CMS / form / App Data definitions are
left unchanged.
webstorio status also diffs schemas when schemasDir is set — see
Deploying.
Typical workflow
- Enable features and set
schemasDir: "schemas". npx webstorio schema pull(or author JSON files by hand).- Edit fields locally;
npx webstorio schema diffto review. npx webstorio schema push— or include schemas in a normalnpx webstorio push.
getContentEntries, getFormSchema, App Data methods, and so on).
