Live article: https://www.storyblok.com/faq/how-to-use-storyblok-create-demo-cli
- FAQ
- How to use storyblok-create-demo CLI
What is storyblok-create-demo?
This is a CLI command to quickly start a project with your favourite framework, already setup with Storyblok.
To use the storyblok-create-demo CLI command, you need to:
- Signup at https://app.storyblok.com/
- Create a new space and retrieve the space preview token under Space -> Settings -> Access Tokens
- Execute following command with the space preview access token:
- Open the Storyblok editor and directly edit your content locally: http://localhost:3000/editor.html
HINT:
The URL varies between different frameworks, you will be provided with the specific URL in your terminal if everything is done correctly.
CLI options
The CLI has different options that can be filled, you can see all the options by running npx @storyblok/create-demo --help
. To see in detail the function of each option, you can read that here.
If you want to skip the “questions” in the CLI and fill it with your options directly in one line, you can do this: