Integration

Learn how to add the Storyblok integration to your project.

The fastest way to get started is through our CLI. If you prefer to set it up manually, check out the step-by-step instructions.

Run the command

The recommended way to install the integration is to use the Croct CLI.

Command to initialize your project
npx croct@latest init

The CLI detects Storyblok in your project and wires personalization for you, setting up one of our SDKs if it is not already present. What it does depends on your stack:

  • JavaScript projects: the CLI wraps your storyblokInit call with withCroct to enable personalization and AB testing features.
  • PHP framework projects: the CLI installs croct/plug-storyblok and enables the integration, which decorates your Storyblok Stories API automatically.

For PHP projects without a supported framework, the CLI does not wire the decorator. Follow the manual installation instructions to set it up yourself.