CLI reference
Whoami CLI command reference
Reference documentation for the Sanity CLI whoami command.
USAGE
$ sanity whoami [--json]
FLAGS
--json Output as JSON
DESCRIPTION
Show the user or API token the CLI is authenticated as
EXAMPLES
Show the currently authenticated user
$ sanity whoami
Output the current user as JSON, for scripts and agents
$ sanity whoami --json