@sparkol/contentful-update

1.0.1 • Public • Published

Contentful Updater

Overview

This commandline utility runs Contentful migration scripts as outlined in the contentful migration repo.

The scripts to be executed will be executed in order of file name, which should be sequential and three digits. e.g.:

000-init.js
001-create-settings-contenttype.js
002-update-settings-contenttype.js
...

On successful update, the tool will update a state store which is stored in Contentful as an extension.

Installation

$ npm install -g Sparkol/contentful-updater

Usage

  • Generate a content management access token see documentation.
  • $ ACCESS_TOKEN=<your-token> contentful-update <options>

Commandline Options

Option Decription
-s, --space-id <space-id> REQUIRED Spectify the Contentful space
-f, --folder <folder-path> REQUIRED Path to the folder containing the scripts
-e, --environment-id <environment-id> Specify the Contentful environment (default "master")
-r, --run-from <index> Run from a specific index rather than using the state store

Readme

Keywords

none

Package Sidebar

Install

npm i @sparkol/contentful-update

Weekly Downloads

61

Version

1.0.1

License

ISC

Unpacked Size

21.5 kB

Total Files

21

Last publish

Collaborators

  • glennflanagan_sparkol