---
url: /reference/cli/whoami.md
---

# whoami

显示已登录用户的帐号信息

## 使用

```shell
Usage: nexus whoami [options]
```

## 选项

```shell
-v, --verbose  enable verbose mode
--json         output results in JSON format (default: false)
-h, --help     display help for command
```

## 示例

```shell
nexus whoami
```
