migrate-mongo
github.com
Spec sheet
- Purpose
- migrate-mongo is a database migration tool for MongoDB running in Node.js.Read 4 Oct 2026 · github.com
- Integrations
- Migration scripts can use Node.js modules and installed npm packages from the migration project's package.json.Read 4 Oct 2026 · github.com
- License
- The repository identifies the project as MIT licensed.Read 4 Oct 2026 · github.com
- Customization
- Actions other than init accept options for a custom configuration file and a custom migrations directory.Read 4 Oct 2026 · github.com
- Error behavior
- If a migration fails, migrate-mongo stops without continuing through the remaining pending migrations.Read 4 Oct 2026 · github.com
- File hashes
- An optional file-hash setting lets changed migration files run again, provided scripts are written to be safely rerunnable.Read 4 Oct 2026 · github.com
- Locking
- The configuration supports a lock collection and a lock TTL, with a TTL value of 0 disabling the feature.Read 4 Oct 2026 · github.com
- Maintainer
- The package metadata names Sebastian Van Sande as author.Read 4 Oct 2026 · github.com
- Migration commands
- Its CLI can initialize a project, create migrations, apply pending migrations, undo the last applied migration, and show migration status.Read 4 Oct 2026 · github.com
- Migration tracking
- Applied changes are recorded in a configurable MongoDB changelog collection.Read 4 Oct 2026 · github.com
- Module formats
- New projects default to CommonJS, with ECMAScript Modules also supported.Read 4 Oct 2026 · github.com
- Requirements
- The README lists Node.js 20 or higher and MongoDB versions 4.x through 7.x as requirements.Read 4 Oct 2026 · github.com
- Reversible migrations
- Migration scripts provide up and down functions for applying and, where possible, rolling back changes.Read 4 Oct 2026 · github.com
- Transactions
- Migration scripts can use MongoDB's Transactions API through the supplied MongoClient, requiring MongoDB 4.0 or higher and migrate-mongo 7.0.0 or higher.Read 4 Oct 2026 · github.com
Plans and prices
migrate-mongo Free MIT-licensed · Node.js >=20.0.0 · MongoDB 4.x, 5.x, 6.x, or 7.x Read 4 Oct 2026 · github.com
Where Specifiction places it
- Database Migration Tools#19 of 327.6