Skip to content

Command line tool to run Contentful CMS updates from code

Notifications You must be signed in to change notification settings

Sparkol/contentful-updater

Repository files navigation

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

About

Command line tool to run Contentful CMS updates from code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published