Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kontent-migration-cli

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kontent-migration-cli

Kentico Kontent migration tool

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Kontent Migration CLI

This package is a migration runner for Kentico Kontent CMS. It allows the following instructions:

  • Tracking migrations in the project
  • Creating new content types
  • Migrating content types and content changes across types
  • Rolling back any changinges

Gettings started

yarn

Migration spaces

For each Kentico space you should create a different migrations folder. You can set which migrations folder you will be using with the MIGRATION_FOLDER environment variable.

Commands

CommandAction
yarn migrate initInitiate the migrations in Kontent
yarn migrate makeMake new Kontent migrations
yarn migrate runRun new migrations
yarn migrate rollbackRoll back existing migrations

Environment Variables

To run this project you will need a number of environment variables

VariableDescription
API_KEYKontent management API key
PROJECT_IDKontent project ID
ENVIRONMENTKontent environment
MIGRATION_FOLDERThe name of the migrations folder
PREVIEW_KEYKontent preview API key

Implementation

This project uses Kontent Migrate all the commands used are abstractions from this library.

Use Cases

Making a new migration

Convention for migration description

  • Should start with a capital letter
  • Should start with an imperative mood verb

Examples:

  • "Create Micro Copy content-type"
  • "Add title field to Page content-type"
  • "Remove description from all content-types"

FAQs

Package last updated on 01 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc