Authenticate with MongoDB Atlas.
This command allows you to authenticate with MongoDB Atlas using User Account, Service Account, or API Key authentication methods.
Syntax
Command Syntax
atlas auth login [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--gov | false | Log in to Atlas for Government. | |
-h, --help | false | help for login | |
--noBrowser | false | Don't automatically 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 the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings. |
Examples
# Log in to your MongoDB Atlas account in interactive mode: atlas auth login