atlas deployments setup creates a local Atlas deployment for application development and testing. With Docker installed, it starts the local environment, downloads a MongoDB image, creates the deployment, and supplies a connection string. section 13.2.2 section 13.6
Use the command as a short, interactive setup workflow:
- Install and verify Docker, then run atlas deployments setup --type local. section 13.2.2
- Accept the default deployment settings or provide a deployment name, MongoDB version, and port. section 13.2.2
- Wait while the CLI starts the environment, downloads the MongoDB image, and creates the deployment. section 13.2.2
- Choose mongosh when prompted to connect, then use show dbs to verify that the local cluster responds. section 13.2.2
- Use docker ps to inspect the healthy container and its localhost port mapping. section 13.2.2
Default local deployment
A default run can create deployment local9619 with MongoDB 8.0 on port 27017 and return mongodb://localhost:27017/?directConnection=true. The resulting container exposes localhost:27017 and reports a healthy status.
After setup, atlas deployments can start, pause, connect to, inspect, or delete the deployment. Local clusters do not load sample data through the CLI; import downloaded data with mongorestore instead. section 13.6
