Docs Home → MongoDB Command Line Interface
mongocli auth login
On this page
Authenticate with MongoDB Atlas.
Syntax
Command Syntax
mongocli auth login [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--cm | false | Log in to Cloud Manager. | |
--gov | false | Log in to Atlas for Government. | |
-h, --help | false | help for login | |
--noBrowser | false | Don't try to open a browser session. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
Examples
# To start the interactive login for your MongoDB Atlas or Cloud Manager account: mongocli auth login