Configure the MongoDB CLI¶
You can define the settings that the MongoDB CLI uses to interact with
MongoDB services like Atlas, Cloud Manager, and Ops Manager by using
the mongocli config command. The first time you run this
command, the MongoDB CLI creates a configuration file called mongocli.toml
to store your settings.
Prerequisites¶
To configure the MongoDB CLI:
- Add your IP or CIDR block to the API whitelist for your MongoDB service.
Generate a Programmatic API Key if you don't already have one.
NoteProgrammatic API Key