Migration tooling for Contentful that manages schema changes as incremental scripted migrations using the contentful-migration syntax. Version 0.18.23 (stable, not actively maintained) enables state tracking per content type via a dedicated Migration content type in Contentful. Unlike one-off scripts, it keeps a history of migrations in a version-control-friendly folder structure and supports up/down migrations. The repository is archived and no longer maintained; users may need to fork or seek alternatives. Requires Node >=18 and a Contentful Management API token.
npm install mi-contentful-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initializing the tool, creating a migration file, and running migrations.
Consider forking the repository or switching to alternatives like @deluan/contentful-migrate or contentful-migration directly.
Set CONTENTFUL_MIGRATIONS_DIR to a path within the project, e.g., ./migrations.
Upgrade Node.js to version 18 or later.
Export the variables or pass --space-id and --environment-id options.
npm install contentful-migration --save-dev
Use module.exports.up = function(migration) { ... };Set CONTENTFUL_SPACE_ID environment variable or pass --space-id option.
No traffic data recorded yet.