MMS is a MongoDB migration tool that uses the native mongo shell for execution, ensuring compatibility with MongoDB's own scripting language. Version 0.1.7 is the current stable release, with infrequent updates and a small user base. It differentiates from other migration tools like db-migrate or node-pg-migrate by tightly coupling with the mongo shell, which allows for native MongoDB queries and commands, but restricts usage to environments where the mongo shell is available. The tool provides basic commands: create, migrate, rollback, and status, and uses configuration-driven migration files. It is suitable for teams already standardized on mongo shell scripts.
npm install mmsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a migration file and running it against a MongoDB instance using the mongo shell.
Install mongosh or ensure the mongo command is available.
No action needed if using standard Node.js environment.
No fix needed; the library uses bluebird internally, but this does not affect user code.
Always pass --uri explicitly or set it in configuration.
Manually write rollback scripts and use mms rollback command after a successful run.
Install mongosh from MongoDB official site or ensure it is in your PATH.
Run 'npm install -g mms' for global CLI or 'npm install mms' locally.
Create a 'migrations' directory in the project root or specify a custom path via config.
Ensure migration files contain valid mongo shell script syntax (not Node.js).
No dependency data recorded yet.