All products

Migrate Contentful content models with AI

Plan a repeatable change to content types, fields or existing entries. Review a migration script in a test environment before applying it to the intended space.

To migrate Contentful content models with AI, consider the entries that already depend on the model. Replacing a free-text section name with a reference affects both the editor’s form and every article that still holds an old value.

The contentful-migration skill turns the proposed change into a script for the official migration tools. You can review how fields are created or transformed, run it against a named environment and check existing entries before repeating an approved change elsewhere.

What it does

  • Add an optional field before asking editors to populate it in existing entries.
  • Rename a display label without confusing it with the identifier that applications use.
  • Derive related entries from existing values and link the original records to them.
  • Adjust editor controls alongside changes to validation or field order.
  • Try a migration in a named sandbox and check representative content afterwards.

Install and use

  1. Install the skill with Node, the official Contentful CLI and the migration library. Supply authorised management credentials and name the target space and environment.
  2. Ask, “Draft a migration from the text category field to linked category entries, preserving existing translations.”
  3. Inspect the script, run it in a sandbox and compare old and new records. Check that it has not already been applied before running it elsewhere.

FAQ

Source

Made by Contentful. Original skill: contentful-migration, published on GitHub under the MIT licence.

View on GitHub