Docs Menu

mongocli auth login

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Authenticate with MongoDB Atlas.

mongocli auth login [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.
--skipConfig
false
Skip profile configuration.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
To start the interactive setup:
$ mongocli auth login
←  mongocli authmongocli auth logout →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.