Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
/ storyblok-tools Public archive

Simple NodeJS package access the manage API of Storyblok (Copy Components, Duplicate Spaces, ...)

Notifications You must be signed in to change notification settings

storyblok/storyblok-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Installation

npm install storyblok-tools --save-dev

Usage

Require the storyblok-tools and add tasks in your gulpfile.

var storyblokSync = require('storyblok-tools');

Download components

gulp.task('storyblok:sync:download', function() {
    return storyblokSync({
      action: 'download',
      options: {
        auth: {email: 'YOUR_EMAIL', password: 'YOUR_PASSWORD'},
        spaceId: 'SPACE_ID'
      }
    });
});

Upload components

gulp.task('storyblok:sync:upload', function() {
    return storyblokSync({
      action: 'upload',
      options: {
        auth: {email: 'YOUR_EMAIL', password: 'YOUR_PASSWORD'},
        spaceId: 'SPACE_ID'
      }
    });
});

About

Simple NodeJS package access the manage API of Storyblok (Copy Components, Duplicate Spaces, ...)

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published