Atlas CLI
The MongoDB Atlas Command Line Interface, or Atlas CLI (mongodb-atlas-cli), allows you to create, manage, and automate operations related to your MongoDB Atlas deployment. This includes tasks like provisioning clusters, creating and deleting users, and controlling network access. You can also access related products like Atlas Search. With the Atlas CLI, you can quickly interact with MongoDB services from the command line for easier testing and scripting.
To report bugs, please use our mongodbcli github issues.
8 results found
-
Image execution in LXC
For our CI we use Github actions with self hosted runners, the server machines have Proxmox with LXC and Ubuntu. For automated tests we start a docker compose which should start the official atlas docker image. During deployment creation it fails with Error 127. Is there anything that is required to execute it on those machines?
The command which I run and the output look like the following:
docker run --privileged -p 27017:27017 -v "/var/run/docker.sock:/var/run/docker.sock" mongodb/atlas:v1.14.2 atlas deployments setup core-data \
--type local \
--mdbVersion 7.0 \
--force \
--bindIpAll \
--username admin \
--password notasecretwith this…
5 votes -
Possibility to download binaries in advance, or start a deployment in docker images
The problem is the following:
When I create a deployment during docker image build, it won't start the deployment during image execution but end in an endless spinner. Therefore I created a deployment which will at least the binary download to speed up the image startup, which worked last year.
Currently on startup of this image it will then try to create a new deployment and results in an error that python could not be found.Creating your cluster core-data
1/2: Starting your local environment...
2/2: Creating your deployment core-data...
Error: exit status 127: Error: runc: runc create failed: unable…5 votesIf I understand this request correctly, we support your use case now.
We have a new docker image that includes the MongoDB server and Atlas Search and Vector Search: https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-deploy-docker/. This image is designed (and licensed for) development and testing locally and in CI/CD. It is not intended for production use.
The image is currently in public preview and we expect to GA it later in the year (2024).
-
Include MongoDB Shell (mongosh) and MongoDB Tools (mongoimport, mongoexport, mongodump, mongorestore) in Atlas Local Docker Image
Please add the mongo shell and database tools to the Atlas Local docker image (mongodb/mongodb-atlas-local).
When working with MongoDB and docker, it is a frequent requirement to perform routine maintenance on the database, add seed data, initialise indexes and other tasks.
Today the Atlas Local docker image (mongodb/mongodb-atlas-local) does not include the following useful utility processes:
- MongoDB Shell (mongosh)
MongoDB Tools
- mongoimport
- mongoexport
- mongodump
- mongorestoreWith the result that it is not possible (without using another container or installing local client tools / libraries) to perform such activities as:
- intialise the database with indexes…2 votesMongosh and the MongoDB tools are now available in the MongoDB Atlas Local Dev container image. Thanks for voting on this request.
-
Please help with official github action to setup Atlas CLI
Please help with official github action from Atlas in Github Action Marketplace to setup Atlas CLI, same as https://github.com/andreaangiolillo/atlas-cli-github-action
2 votesHello again,
Thank you for being patient while we've been working hard to add this new capability. I'm happy to share that it's now available and ready to use.
You can get started by visiting: https://github.com/mongodb/atlas-github-action
Keep the feedback coming.
Jakub
-
Add instructions for windows local development.
It took me some research, but I was able to run the mongodb/atlas:latest docker image on a windows machine using Docker Desktop. I had to add this config on WSL nestedVirtualization=true (see https://learn.microsoft.com/en-us/windows/wsl/wsl-config).
Please add this to the documentation to save some troubleshooting time for other windows developers that might want to try this feature locally.
1 voteThanks for voting for this request, which is now complete. Additionally, we now also support the Atlas CLI flow for setting up local development environments on Windows.
-
No sufficient instructions
Please improve tutorials. This page (https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-docker/) is no sufficient.
PS C:\ivo\projects\nest1> docker pull mongodb/atlas
...
PS C:\ivo\projects\nest1> docker run --env-file atlas.env --rm -it mongodb/atlas bash
[root@9bd3eed47f2d /]#
[root@9bd3eed47f2d /]# show dbs
bash: show: command not found
[root@9bd3eed47f2d /]# mongo
bash: mongo: command not found
[root@9bd3eed47f2d /]#Please write more perfect and working tutorial for it.
Second problem is docker's mongo-express (https://hub.docker.com/_/mongo-express). I've windows' Docker Desctop and the mongo-express doesn't simply work. Please improve it if it's yours, and make possible good instructions for it.
For example i use with docker-compose.yml:
version: "3.8"
services:
mongodb:
#image: mongo:5.0.6-focal…1 voteFor Docker and Docker Compose please follow the documentation at https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-deploy-docker/.
The docker image described there provides a simple way to run MongoDB with Atlas Search and Vector Search capabilities included in Docker and Docker Compose for development and testing purposes.
-
Using atlas cli local deployment feature in a docker-compose based automatic testing environment
Is it possible to use this in a CI based on docker compose for automated testing?
1 vote -
Please help with official docker image which is preinstalled with Atlas CLI
Please help with official docker image which is preinstalled with Atlas CLI, same as
mcr.microsoft.com/azure-cli which gives us the built image with azure cli
amazon/aws-cli - Docker Image | Docker Hub1 voteThank you for waiting for the official Docker image for Atlas CLI. It's now live and available for you to pull: https://hub.docker.com/r/mongodb/atlas
Please use "docker pull mongodb/atlas" to get started.
Looking forward to getting more feedback.
Thank you,
Jakub
- Don't see your idea?