storyblok-use-cli
Work with Storyblok through the CLI
Running it
Resolve the binary once: node_modules/.bin/storyblok, else the package
manager's exec (pnpm exec, npx), else a global storyblok. A one-off in a
project that does not depend on it can run through pnpm dlx storyblok or
npx -y storyblok — no install needed.
Most commands work against one space. Set it once in storyblok.config.ts
(space) and every command picks it up; otherwise pass --space <id> on each.
Offline commands — schema validate among them — take no space at all.
Space-to-space is the exception: push and migrations run read their local
files from --from <id> when it is given, and from --space otherwise.
Prefer flags over prompts: every unset option a command needs becomes an
interactive question you cannot answer. Add --verbose when a command fails.