stories pull
Downloads stories from a Storyblok space and saves them to a local directory.
The command saves to the following folder structure and recursively creates it if it doesn’t exist yet. All stories are saved as individual JSON files ({slug}_{UUID}.json).
.storyblok/└── stories/ └── <space-id>/ └── <story>.jsonstoryblok stories pull [flags]| Flag | Type | Description |
|---|---|---|
--space -s |
integer | Required. The ID of the Storyblok space to pull stories from. |
--path, -p |
string | Optional. Specify a custom path for story files. Defaults to .storyblok/stories/<space-id>. |
--query, -q |
string | Optional. Filter stories using query parameters. |
--dry-run, -d |
boolean | Optional. Preview changes without applying them to the local directory. |
--starts-with, -sw |
string | Optional. A path prefix to filter stories to pull. |
Examples
Section titled “Examples”The following examples assume that a space has been defined in a configuration file.
# Pull stories from a spacestoryblok stories pull# Pull stories from a space, filtering by query and previewing changes without applying them to the local directorystoryblok stories pull --query "[highlighted][in]=true" --dry-run# Pull stories from a space, filtering by path prefixstoryblok stories pull --starts-with "blog/"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