⚠️ Independent community project — not an official MongoDB product. For local development, demos, and learning only. Do not use in production.
A Node.js CLI to spin up local MongoDB environments with Docker — designed for learning, demos, and development. Standalone, replica set, sharded cluster, Atlas Search, and Queryable Encryption. No Atlas account needed.
From a simple single node to a full sharded cluster — spin up any topology with one command, built for learning and local development.
The simplest setup — a single MongoDB instance. Perfect for getting started, quick prototyping, or running Search experiments.
Multi-node replica set with automatic primary election. Supports up to N replicas, built-in failover, and oplog for change streams.
Full sharded topology with config servers, mongos routers, and multiple shards. Includes quickstart scripts for shard key configuration.
Enable Atlas Search (mongot) on standalone or replica set topologies. Comes with sample data and a quickstart to run full-text queries.
Demo local KMS-based Queryable Encryption on a replica set. Automatically creates data keys, encrypted collections, and runs end-to-end demos.
Don't remember the flags? Just run `mongodb-cli-lab` and navigate a full interactive menu to set up, inspect, and tear down your lab.
Only prerequisite: Docker running on your machine.
Install globally via npm
Pick a topology and start
Each one is one command away.
Go deeper with dedicated labs for MongoDB's most powerful features.
Experiment with full-text search locally. The quickstart spins up a replica set with mongot, loads sample data, and runs search queries — ready to explore in minutes.
Learn how Queryable Encryption works in practice. The quickstart generates keys, creates an encrypted collection, and demonstrates querying encrypted fields — all locally.
All the commands at a glance.
| Command | Description |
|---|---|
| mongodb-cli-lab | Open the interactive menu |
| mongodb-cli-lab up | Start a lab with a given topology |
| mongodb-cli-lab status | Show status of the running lab |
| mongodb-cli-lab down | Stop the running lab |
| mongodb-cli-lab clean | Remove all containers and volumes |
| mongodb-cli-lab quickstart | Run a quickstart script for the topology |
| mongodb-cli-lab qe quickstart | Queryable Encryption quickstart |
| mongodb-cli-lab qe setup | Create a custom QE demo collection |
| mongodb-cli-lab qe status | Show Queryable Encryption lab status |
Key flags for mongodb-cli-lab up:
This is an independent community project — not an official MongoDB product.
It is intended for local development, demos, testing, and learning only. Do not use in production environments.
One command. No account. No cloud. Just Docker.