Docs Home → MongoDB Command Line Interface
mongocli auth login
On this page
Authenticate with MongoDB Atlas.
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 | Profile to use from your configuration file. |
Examples
To start the interactive login for your MongoDB Atlas or Cloud Manager account: $ mongocli auth login