Skip to content

migrations rollback

Reverts a previous migration that was executed with migrations run, restoring affected stories in a Storyblok space based on a snapshot saved by migrations run.

  • A snapshot file generated by migrations run is required to perform the rollback.
Terminal window
storyblok migrations rollback [arguments] [flags]
Argument Type Description
Snapshot file string Required. The full name of the snapshot file generated by migrations run.
Flag Type Description
--space integer Required. The ID of the Storyblok space to perform the rollback for.
--path string Optional. Specify a custom path for snapshot files. Defaults to .storyblok/migrations/<space-id>.

The following examples assume that a space has been defined in a configuration file.

Terminal window
# Rollback a migration in the specified space
storyblok migrations rollback hero-section.1770129788914.js

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.