Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion docs/en/ui/cli_tools/ac/developer-command-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2000,4 +2000,25 @@ ac wait --for=create secret/busybox1 --timeout=30s
# Wait for the pod "busybox1" to be deleted, with a timeout of 60s, after having issued the "delete" command
ac delete pod/busybox1
ac wait --for=delete pod/busybox1 --timeout=60s
```
```

## ac whoami

Show information about the current session

### Example usage

```bash
# Display the currently authenticated user
ac whoami

# Print the current user context name
ac whoami -c

# Print the current server's REST API URL
ac whoami --show-server

# Print the token the current session is using
ac whoami -t
Comment thread
coderabbitai[bot] marked this conversation as resolved.
# Caution: the token printed by ac whoami -t is sensitive; do not expose it in logs, shell history, screenshots, or shared output.
```