skip to content
Alvin Lucillo

Atlas CLI

/ 1 min read

Instead of working with Atlas dashboard, you can also work with CLI, especially if you want to work with management APIs.

Follow the instructions found in: https://www.mongodb.com/docs/atlas/cli/current/install-atlas-cli/

Enter atlas, and you should see CLI usage instructions.

You can also log in directly by logging in directly to the provided URL and providing the one-time verification code. However,

atlas auth login

Warning: Secure storage is not available, falling back to insecure storage
To disable this alert, run "atlas config set silence_storage_warning true"
? Select authentication type: UserAccount

To verify your account, copy your one-time verification code:
XXXX-YYYY

Paste the code in the browser when prompted to activate your Atlas CLI. Your code will expire after 3 minutes.

To continue, go to https://account.mongodb.com/account/connect

Press Enter to open the browser and complete authentication...