Docs Menu
Docs Home
/ /
Atlas CLI
/ /

atlas auth login

Authenticate with MongoDB Atlas.

This command allows you to authenticate with MongoDB Atlas using User Account, Service Account, or API Key authentication methods.

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 automatically 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

On this page