Difficulty: beginner
Estimated Time: 10 minutes

Welcome to the Contentful migration CLI demo!

This demo will guide you through the process of writing a migration script to make changes to a Contentful content model, and apply it on a given space.

You've completed your first migration using the Contentful Migration framework!

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Contentful Migration CLI demo

Step 1 of 4

Step 1 - Installation and setup


npm install -g contentful-cli

npm install -g contentful-migration-cli



contentful login

Create an empty space:

contentful space create

Save the created space ID as an environment variable:

export SPACE_ID=paste-space-id