Hello everyone, I’m excited to share something I’ve been building — a CLI tool called Mongeese.
In short, Mongeese tracks your Mongoose models, detects schema changes over time, and generates versioned MongoDB migration files automatically. Think of it as bringing the TypeORM/Prisma-style migration workflow into the MongoDB + Mongoose ecosystem.
Why did I build it? Honestly, because flexible schema is a blessing right up until it isn’t. I’ve run into enough production headaches where a single missing field or a silent schema drift caused serious issues. MongoDB’s philosophy gives you freedom, but that freedom still needs guardrails. Mongeese gives you those guardrails without getting in your way.
In order to start using Mongeese CLI in your projects, you can run the following commands based on your preferred package manager -
npm install mongeese-cli
or
yarn add mongeese-cli
Mongeese CLI is also open-source so feel free to make any contributions you would want to add - GitHub.
I’d love to hear your thoughts on the project, please share in the comments below!