Migry is a simplistic MongoDB migration manager built specifically for Mongoose. Current stable version is 0.4.1, with no recent updates (last release likely 2019). It provides a CLI and programmatic API to create, list, and run migrations using JavaScript files that export an async function. Key differentiators: lightweight, no external dependencies besides Mongoose 5.x, and supports per-environment config with TLS options. Compared to alternatives like migrate-mongo, Migry has far fewer features and no active maintenance. Suitable for small projects that already use Mongoose and need a minimal migration runner. Use cautiously: peer dependency on Mongoose 5.x, no support for Mongoose 6+, and potential security risks from unverified npm package.
npm install migryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup and usage: install, init folder, create a migration, edit it, and run all pending migrations.
Downgrade Mongoose to 5.x or use a different migration tool that supports Mongoose 6+.
Consider migrating to actively maintained alternatives like migrate-mongo or mongodb-migrate.
Run commands in the directory where migrations/config.json exists.
Ensure migration files export an async function using module.exports = async function() { ... }.Install mongoose as a dependency: npm install mongoose@5
Run 'npm install mongoose' to install the peer dependency.
const CLI = require('migry').CLI;