Docs Menu
Docs Home
/ /
MongoDB CLI
/ /

mongocli auth login

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Authenticate with MongoDB Atlas.

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

-h, --help

false

help for login

--noBrowser

false

Don't try to open a browser session.

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.

# Log in to your MongoDB Cloud Manager account in interactive mode:
mongocli auth login

Back

auth