Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/ /
Atlas CLI
/ / / /

atlas auth login

Authenticate with MongoDB Atlas.

Public Preview: The atlas api sub-command, automatically generated from the MongoDB Atlas Admin API, offers full coverage of the Admin API and is currently in Public Preview (please provide feedback at https://feedback.mongodb.com/forums/930808-atlas-cli). Admin API capabilities have their own release lifecycle, which you can check via the provided API endpoint documentation link.

Command Syntax
atlas auth login [options]
Name
Type
Required
Description

--gov

false

Log in to Atlas for Government.

-h, --help

false

help for login

--noBrowser

false

Don't try to open a browser session.

Name
Type
Required
Description

-P, --profile

string

false

# Log in to your MongoDB Atlas account in interactive mode:
atlas auth login

On this page