This shows a simple migration of the Article content type from the Drupal Umami
demo (see https://dev-contentful-umami.pantheonsite.io/). This is by no means a full migration -- it simply shows how to migrate a few of the fields from the Article content type (i.e. Title, Body HTML to Rich Text, and image/media references) as a jumping off point for other migration projects.
- Create a new blank space.
- Import the demo content model via
contentful space import --space-id <YOUR SPACE ID> --environment-id <YOUR ENVIRONMENT ID> content-model.js
- Copy
.env.example
and rename it to.env
. - Fill in the environment variables using data from your Contentful space.
- Run
npm install
to install all dependencies. - From your terminal run
node index.js
, which will kick off the migration.