To validate stackbit.yaml
located in current folder
> npm install @stackbit/cli -g
> stackbit validate
Or using the npx
command
> npx @stackbit/cli validate
You can also use the validator in node:
npm install @stackbit/schema-utils
const { validator } require('@stackbit/schema-utils');
const result = await validator.validate({
dir: process.cwd()
});