1.0.1 • Published 2 years ago

@sparkol/contentful-update v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

OptionDecription
-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