The Storyblok CLI (Command Line Interface) is a powerful development tool designed to enhance the developer experience for projects integrating with the Storyblok Headless CMS. It provides a robust set of features for managing Storyblok spaces directly from the terminal, including generating TypeScript type definitions for components to ensure type safety in frontend applications. The current stable version is 4.16.9, released very recently, indicating an active development and release cadence, often as part of a monorepo that includes various Storyblok SDKs. Key differentiators include its comprehensive component management capabilities (pulling, pushing schemas, groups, presets, tags), a flexible migration system for content updates, secure authentication across regions, and advanced filtering options. It focuses on improving workflow efficiency with features like organized file structures, customizable paths, and a dry run mode for migrations.
npm install storyblokVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install the Storyblok CLI globally, log in, pull component schemas, generate TypeScript types, and run a basic content migration with a dry run.
Upgrade your Node.js environment to version 18.0.0 or later using a tool like nvm or by downloading the latest LTS from nodejs.org.
Generate a Personal Access Token from your Storyblok account settings (https://app.storyblok.com/#/me/account?tab=token) and use `storyblok login` to authenticate before running commands.
For destructive operations, always use `--dry-run` to preview changes and test on staging environments before applying to production. Implement a robust CI/CD pipeline that includes schema and content backups.
Since v4.16.9, path resolution has been improved, but always double-check your `--path` argument. Use absolute paths for clarity or ensure the relative path is correct from where you execute the CLI command.
Install the CLI globally using `npm install -g storyblok` or execute commands using `npx storyblok <command>`.
Run `storyblok login` and provide your Storyblok Personal Access Token to authenticate your CLI session.
Update Node.js to version 18.0.0 or higher. Use `nvm install 18 && nvm use 18` or download the latest LTS version from nodejs.org.
No dependency data recorded yet.