Mongeese CLI - MongoDB Migration Auto-generation

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!

3 Likes

This is great @Michael_Nwuju - thank you for being our first community member to share what they’re building!

1 Like

This is absolutely phenomenal, Michael! Thank you so much for sharing Mongeese here in the “Building on MongoDB” category. This is exactly the kind of innovation and contribution we launched the Community Hub to celebrate.

We’re excited to see where you take this project and encourage everyone here to check out the Mongeese CLI and contribute on GitHub.

Keep up the incredible work :smiley:

2 Likes