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.
Prerequisites
Section titled “Prerequisites”- A snapshot file generated by
migrations runis required to perform the rollback.
storyblok migrations rollback [arguments] [flags]Arguments
Section titled “Arguments”| 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>. |
Examples
Section titled “Examples”The following examples assume that a space has been defined in a configuration file.
# Rollback a migration in the specified spacestoryblok migrations rollback hero-section.1770129788914.jsThanks! We received your feedback.
An error occurred. Please try again.
Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community