Skip to content

docs: add ac whoami command reference#745

Open
mysekai7 wants to merge 2 commits into
masterfrom
backport/ac-whoami-master
Open

docs: add ac whoami command reference#745
mysekai7 wants to merge 2 commits into
masterfrom
backport/ac-whoami-master

Conversation

@mysekai7
Copy link
Copy Markdown
Contributor

@mysekai7 mysekai7 commented May 8, 2026

Summary by CodeRabbit

  • Documentation
    • Updated the developer command reference with comprehensive documentation for the ac whoami command, including usage examples for displaying the currently authenticated user, context details, server API URL, and authentication token.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

Review Change Stack

Warning

Rate limit exceeded

@mysekai7 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 52 minutes and 45 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 84ab8182-ab11-42ab-88e2-0c6e511dd39e

📥 Commits

Reviewing files that changed from the base of the PR and between 0afdff6 and 8afae60.

📒 Files selected for processing (1)
  • docs/en/ui/cli_tools/ac/developer-command-reference.md

Walkthrough

This PR adds documentation for the ac whoami CLI command to the developer command reference guide. The new section includes a command description and four example usages demonstrating how to display the authenticated user, print the context name, show the server REST API URL, and output the session token.

Changes

AC CLI Documentation

Layer / File(s) Summary
Command Reference
docs/en/ui/cli_tools/ac/developer-command-reference.md
New ac whoami command documentation with description and four usage examples: basic display, context name flag (-c), server URL flag (--show-server), and token flag (-t).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A curious rabbit asks "who am I?"
The whoami command answers with pride,
Context, token, and server in sight—
Documentation now shines bright,
Users will know their identity! 🐰✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding documentation for the 'ac whoami' command reference. It is concise, clear, and directly matches the changeset content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch backport/ac-whoami-master

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/en/ui/cli_tools/ac/developer-command-reference.md`:
- Around line 2021-2022: Add a one-line security caution immediately after the
"ac whoami -t" example warning that the printed session token is sensitive and
should not be exposed in logs, shell history, screenshots, or shared output;
reference the example command "ac whoami -t" so editors can locate it and ensure
the wording is concise (e.g., "Caution: the token printed by ac whoami -t is
sensitive—do not expose it in logs, shell history, or screenshots.").
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3976ec32-a8f1-49df-8748-dc01113b9e20

📥 Commits

Reviewing files that changed from the base of the PR and between 79a424c and 0afdff6.

📒 Files selected for processing (1)
  • docs/en/ui/cli_tools/ac/developer-command-reference.md

Comment thread docs/en/ui/cli_tools/ac/developer-command-reference.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant