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
-
Add `atlas backups restores watch` command
I like the ability to monitor snapshot progress with
atlas snapshot watch
. It lets me wait for the snapshot to finish up before progressing on to some future step of an automated workflow.Could we add the same watch command to atlas backup restore? The API I'm envisioning is just this:
atlas backups restores watch <restoreId> [options]
Where
[options]
are all the usual suspects like--projectId
--profile
and so forth. Like thesnapshots watch
command, this will help me wait for a database to finish restoring some snapshot before going and doing some other step of an automated workflow.…
5 votesThank you again for all your feedback and engagement in making the Atlas CLI more usable for you and other customers.
As per my colleagues earlier comment: this capability was delivered in Atlas 1.2.0 release and you can view the changelog here: https://www.mongodb.com/docs/atlas/cli/stable/atlas-cli-changelog/#atlas-cli-v1.2.0
We appreciate all your insights so please keep them coming.
Thank you,
Jakub
-
Allow all IPs for local atlas deployments
Hello,
we want to create a docker container which runs the atlas-cli with --type local, the base is the official mongodb/atlas docker image. We need this so we can work with atlas-search. The access list which can be provided during deployment setup, is not passed down to the mongod config and we get blocked. A reverse proxy doesn't help in this case. If we enter the final podman image and modify the config, we can't restart the server without crashing the container and which breaks again.
We would really appreciate it if we could somehow get bind IPs activated.Thank…
3 votes -
Add a command to open the CLI config on my system editor
A new command like
mongocli config edit
that opens the config file on my system editor3 votes -
JSON
An export function to export the configuration of an existing Cluster to a JSON config file, of the kind used by Atlas CLI to create clusters.
I can imagine this as a flag for a detailed output of "atlas cluster describe "
1 voteThanks for raising this suggestion.
As per the comment earlier, this is already available with "--output json" flag. If you'd like to export it to a file, feel free to add "> filename.json" at the end of command.
I hope this helps.
Thanks,
Jakub
-
Add `edit` to `atlas config` help listing.
When listing help for
atlas config
theedit
option is not currently visible:
```
~ 🍤 atlas config --help 23:14:37 UTC
Configure settings in a user profile.
All settings are optional. You can specify settings individually by running:
$ atlas config set --helpYou can also use environment variables (MONGODBATLAS*) when running the tool.
To find out more, see the documentation: https://dochub.mongodb.org/core/atlas-cli-env-variables.Usage:
atlas config [command]Available Commands:
init Configure a profile to store access settings for your MongoDB deployment.
set Configure specific properties of a profile.
list Return a list of available profiles by name.
describe…1 voteHi Alicja,
Thank you again for raising this feedback. This new command "atlas config edit" is available on Atlas CLI since version 1.2.0.
Looking forward to seeing more feedback on the Atlas CLI.
Thanks,
Jakub
-
Add description of JSON file used to create cluster.
According to doco https://www.mongodb.com/docs/atlas/cli/upcoming/command/atlas-clusters-create/
"For full control of your deployment, or to create multi-cloud clusters, provide a JSON configuration file with the --file flag."
it would be nice to get detailed description what should be in this file, what can be changed and what is the expected format of parameters in this file.
1 voteHi Sergey,
Apologies for the late response here and thank you for raising it in the first place.
In version 1.5.0 of the Atlas CLI we've updated the command's help to provide better guidelines and links to more details on the configuration file.
You'll see the following information
-f, --file string Path to an optional JSON configuration file that defines cluster settings. To learn more about configuration files for the Atlas CLI, see https://www.mongodb.com/docs/atlas/cli/stable/cluster-config-file/. To learn more about configuration files for MongoCLI, see https://www.mongodb.com/docs/mongocli/stable/reference/mms-cluster-settings-file/.
Please let me know if there's anything unclear.
Thanks,
Jakub
-
Add --currentIp to atlas accessList
Would be nice to have the --currentIp option when using "atlas accessList".
The current workaround in linux/macOS ismongocli atlas accessList create
curl ifconfig.me
1 vote -
Support setting userToDNMapping in LDAP config
There are flags to save other LDAP configuration settings but none for this portion. I would imagine it to be three flags with two being mutually exclusive (per docs at https://docs.mongodb.com/manual/reference/configuration-options/#security.ldap.userToDNMapping):
[ --mappingMatch <regex> { --mappingLdapQuery <query> | --mappingSubstitution <DN> } ]1 voteAdded in MongoDB CLI v1.16 https://docs.mongodb.com/mongocli/stable/release-notes/
- Don't see your idea?