For AI agents: a documentation index is available at https://www.mongodb.com/ko-kr/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

mongocli auth whoami

Verifies and displays information about your authentication state.

Command Syntax
mongocli 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 MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.

# See the logged account:
mongocli auth whoami