Docs Menu

mongocli auth whoami

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Verifies and displays information about your authentication state.

mongocli auth whoami [options]
Name
Type
Required
Description
-h, --help
false
help for whoami
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
See the logged account:
$ mongocli auth whoami
←  mongocli auth logoutmongocli cloud-manager →
Give Feedback
© 2022 MongoDB, Inc.

About

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