Docs Menu
Docs Home
/ /
Atlas CLI
/ /

atlas auth login

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Authenticate with MongoDB Atlas.

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

--gov

false

Log in to Atlas for Government.

-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 the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings.

# Log in to your MongoDB Atlas account in interactive mode:
atlas auth login

Back

auth