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.
25 results found
-
Allow for specifying config file path.
Currently, the config for Atlas CLI lives in a specific directory defined by the tool: https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-save-connection-settings/#std-label-config-toml-location
While the config can be both set by CLI and edited with
atlas config edit
command, both of those options are specific to the tool. As someone who uses multiple CLI tools, I prefer to have all my configs organized the way it works for me and not have to remember idiosyncratic configuration for one of the tools I'm using.1 voteThank you for filing another idea! We appreciate your feedback and contribution.
We’ll investigate internally what would it take to deliver the right experience to users to allow setting the path to the configuration file.
In meantime, could you please share what would be the best way to configure the path to config file within the Atlas CLI from your perspective?
Keep the ideas coming!
Jakub
-
Ability to download/point to latest tool versions
This is especially important for a headless environment. And can be applied to more than just the Atlas CLI and the MongoDb Shell
This documentation tells you to manually construct the string: https://www.mongodb.com/docs/database-tools/installation/installation-linux/#installation
It would be ideal to programmatically access the latest version, instead of having to manually build a download string and use that to access a static version.
Other languages and tools have solved this problem. Could MongoDb do this, too?
It looks like someone tried to do this for Windows: https://community.chocolatey.org/packages/mongodb-shell#versionhistory
But that doesn't look like an officially supported solution, It would be amazing if this existed,…
1 voteThank you for taking the time to file this request. Your feedback helps us make the Atlas CLI a better place for you and other users. At the same time I’d like to apologise for the late reply.
Programmatic usage of the Atlas CLI is an area we plan to improve and further simplify. We can see how having an ability to download always the latest version of the Atlas CLI can simplify some of the automated actions.
As a next step we’ll look into some more details how this could be achieved.
We’ll update this idea as soon as we have more details.
In the meantime, could you share more details on what do you use this automation for?
Keep the ideas coming!
Jakub
-
The "mongocli atlas clusters list" command ought to return hosts in an array
The 'mongocli atlas metrics databases list' command expects a hostname argument. Currently, one has to parse out the hosts from the URI returned from the cluster list command. It would be easier if the cluster list command returned the hosts in a command along with the replica set status, so that one could easier script the descent from the cluster into cluster details and info.
1 vote -
Username is case sensitive
with username "Shamim" authentication failed where as "shamim" works
1 vote -
Add user by email address
I'd like to be able to specify a user's e-mail address when adding them to a group from the mongocli.
mongocli iam teams create
allows one to pass in e-mail addresses. Butmongocli iam teams users add
requires the UUID of the user.
For reference: https://github.com/mongodb/mongocli/issues/6061 vote
- Don't see your idea?