Docs Menu

Docs HomeLaunch & Manage MongoDBAtlas CLI

atlas auth whoami

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Verifies and displays information about your authentication state.

Command Syntax
atlas auth whoami [options]
Name
Type
Required
Description
-h, --help
false
help for whoami
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.
# See the logged account:
atlas auth whoami
← atlas auth register