An easy way to download all your assets from Storyblok.
This script will create the first level folder structure you have in Storyblok and downloads the assets accordingly. If you did not added your assets in asset folder they will be downloaded in the root download
folder of your checked out repository.
Since traffic is a paid parameter do not download your assets every hour; If you have a customer that lost their images and you want to download them without downloading them manually this script is for you.
- Install dependencies
npm install
- Configure the index.js
const config = {
// on your space dashboard
space: 'YOUR_SPACE_ID',
// https://www.storyblok.com/docs/management-api/authentication#authentication
oauthToken: 'YOUR_OAUTH_TOKEN'
}
- Run the script
node index.js