diff --git a/docs/en/ui/cli_tools/ac/developer-command-reference.md b/docs/en/ui/cli_tools/ac/developer-command-reference.md index a83251b8b..8d0b4ff5b 100644 --- a/docs/en/ui/cli_tools/ac/developer-command-reference.md +++ b/docs/en/ui/cli_tools/ac/developer-command-reference.md @@ -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 -``` \ No newline at end of file +``` + +## 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 +# Caution: the token printed by ac whoami -t is sensitive; do not expose it in logs, shell history, screenshots, or shared output. +```