Skip to content

Add documentation for Asgardeo CLI#6130

Open
Pratheep-Srikones wants to merge 5 commits into
wso2:masterfrom
Pratheep-Srikones:master
Open

Add documentation for Asgardeo CLI#6130
Pratheep-Srikones wants to merge 5 commits into
wso2:masterfrom
Pratheep-Srikones:master

Conversation

@Pratheep-Srikones
Copy link
Copy Markdown
Contributor

Purpose

To add documentation for the Asgardeo CLI tool.

PS: It is not added to the sidebar until release.

Related PRs

PR for Asgardeo CLI

Test environment

N/A

Security checks

Copilot AI review requested due to automatic review settings May 11, 2026 04:52
@Pratheep-Srikones Pratheep-Srikones self-assigned this May 11, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 11, 2026

Review Change Stack

Warning

Rate limit exceeded

@Pratheep-Srikones has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 49 minutes and 22 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: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 3276b293-5a46-461e-894b-8f4463fb0587

📥 Commits

Reviewing files that changed from the base of the PR and between 0271685 and c536776.

📒 Files selected for processing (1)
  • en/includes/references/asgardeo-cli.md
📝 Walkthrough

Walkthrough

This PR introduces comprehensive Asgardeo CLI documentation with setup, installation, authentication, and usage instructions. Navigation configuration entries are added in commented-out state, ready to be uncommented following the CLI release.

Changes

Asgardeo CLI Documentation

Layer / File(s) Summary
CLI Overview and Preview Status
en/includes/references/asgardeo-cli.md
Introduces the Asgardeo CLI as a Preview feature and describes its core functionality for managing Asgardeo resources.
Asgardeo Configuration and Scopes
en/includes/references/asgardeo-cli.md
Documents M2M application creation, token/scope configuration, required management APIs, and guidance for selectively authorizing scopes per CLI command area.
Local Installation and Verification
en/includes/references/asgardeo-cli.md
Provides Go-based build and installation instructions, PATH setup, and verification via asg --help.
Authentication Workflow
en/includes/references/asgardeo-cli.md
Documents CLI login with interactive prompts, flag-based login alternative, client secret security warning, and status/logout commands.
CLI and Text User Interface
en/includes/references/asgardeo-cli.md
Explains command syntax patterns, example commands, --help usage, and optional TUI access via asg tui.
Next Steps and Management Areas
en/includes/references/asgardeo-cli.md
Lists post-setup management topics (applications, users, groups, roles, API resources) with guidance to explore via --help.
Page Template and Content Inclusion
en/asgardeo/docs/references/asgardeo-cli.md
Establishes page template, learning outcomes metadata, and prerequisites (Asgardeo account, Go installation).
Navigation Configuration
en/asgardeo/mkdocs.yml, en/base.yml
Adds commented-out navigation entries for the Asgardeo CLI documentation page, to be uncommented after CLI release.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add documentation for Asgardeo CLI' directly and concisely describes the main change: adding documentation for the Asgardeo CLI tool, which is confirmed by the file additions across multiple documentation files.
Description check ✅ Passed The PR description includes all required template sections (Purpose, Related PRs, Test environment, Security checks) with appropriate content, though one security check checkbox shows formatting inconsistency.
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

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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: 3

🤖 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 `@en/asgardeo/docs/asgardeo-cli.md`:
- Line 133: Fix the typo in the logout note: change "commnd" to "command" in the
sentence that references the asg logout command (the line containing "Use the
`asg logout` commnd to clear the authentication data of the CLI.").
- Around line 67-161: The markdown under the "Installation" and "Authenticating
the CLI" sections violates markdownlint rules (consecutive headings, ordered
list numbering, fenced codeblock spacing, trailing spaces and inline blank-line
rules). Fix by: normalizing all ordered lists under "Building the Asgardeo CLI
locally" and "Authenticating via an application" to start each sequence at 1
(change the prefixed numbers like 2./3./4. back to 1.), ensure single blank
lines before and after each fenced code block (```bash ... ```), remove extra
blank/consecutive headings (remove stray empty headings between "Authenticating
via an application" and its paragraph), eliminate trailing spaces and stray
characters at code block delimiters, and convert indented code blocks to fenced
code blocks where shown (examples under "For example:" and the TUI snippet) so
the file conforms to MD022/MD029/MD030/MD031/MD009.

In `@en/asgardeo/mkdocs.yml`:
- Line 814: Fix the typo in the release-note comment: locate the comment string
"uncomment after relasing the CLI." in mkdocs.yml and change "relasing" to
"releasing" so it reads "uncomment after releasing the CLI.".
🪄 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: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 744eea40-2f8d-4a7d-b506-44281bf07e54

📥 Commits

Reviewing files that changed from the base of the PR and between 20dde91 and e0fbfcc.

⛔ Files ignored due to path filters (1)
  • en/asgardeo/docs/assets/img/quick-starts/cli-tool/credentials.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • en/asgardeo/docs/asgardeo-cli.md
  • en/asgardeo/mkdocs.yml
  • en/base.yml

Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/mkdocs.yml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new documentation page for the Asgardeo CLI, with navigation entries intentionally left commented out until the CLI is released.

Changes:

  • Adds a new quick-start style doc page at en/asgardeo/docs/asgardeo-cli.md.
  • Adds (commented) nav entry for the new page in en/asgardeo/mkdocs.yml.
  • Adds (commented) sidebar icon entry for “Asgardeo CLI” in en/base.yml.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 10 comments.

File Description
en/base.yml Adds a commented-out nav icon entry for “Asgardeo CLI” (to enable post-release).
en/asgardeo/mkdocs.yml Adds a commented-out nav item pointing to asgardeo-cli.md.
en/asgardeo/docs/asgardeo-cli.md New documentation page describing setup, authentication, and usage of the Asgardeo CLI.

Comment thread en/asgardeo/mkdocs.yml Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/asgardeo/docs/asgardeo-cli.md Outdated
Comment thread en/includes/references/asgardeo-cli.md Outdated
Comment thread en/includes/references/asgardeo-cli.md Outdated
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: 4

🤖 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 `@en/includes/references/asgardeo-cli.md`:
- Line 29: The sentence "We recommend to set the `Token type` of the Access
Token of this application to `Opaque`, and `Application access token expiry
time` of the application to a preferred value." uses an incorrect verb form
after "recommend"; change it to use a gerund: update the phrase starting with
"We recommend to set the `Token type`..." to "We recommend setting the `Token
type` of the Access Token of this application to `Opaque`, and the `Application
access token expiry time` of the application to a preferred value." so the
section in asgardeo-cli.md uses "setting" and makes the second clause clearer.
- Line 52: Replace the passive sentence "Currently, the CLI can be built from
the source code." with an active-voice present-tense version such as "You can
build the CLI from the source code." Update the line in
en/includes/references/asgardeo-cli.md where that exact sentence appears so the
document uses active voice and directly addresses the user.
- Line 3: The single long sentence starting "The **Asgardeo CLI** helps you
manage identity and access management tasks using terminal commands..." should
be split into 2–3 shorter, plain-language sentences; for example, make one
sentence that states what the Asgardeo CLI does (manages identity and access
tasks via terminal/AI tools), a second that explains how it connects to Asgardeo
Management APIs, and an optional third that lists core automated operations
(creating applications, updating API resources, and managing users, groups, and
roles) without referencing the Console UI or direct API calls.
- Line 13: The paragraph is a long, multi-concept sentence; simplify it by
splitting into shorter sentences and using plain language: describe that the
Asgardeo CLI talks to the Asgardeo Management APIs, state that it needs an
access token with proper scopes, and then explain that you must configure access
by creating a Machine-to-Machine (M2M) application and authorizing API resources
and scopes—rewrite the original sentence into 2–3 clear, short sentences
preserving those points.
🪄 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: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: ed742724-273e-4efa-ad6f-34a66ebd38f9

📥 Commits

Reviewing files that changed from the base of the PR and between e0fbfcc and 0271685.

📒 Files selected for processing (3)
  • en/asgardeo/docs/references/asgardeo-cli.md
  • en/asgardeo/mkdocs.yml
  • en/includes/references/asgardeo-cli.md
✅ Files skipped from review due to trivial changes (2)
  • en/asgardeo/docs/references/asgardeo-cli.md
  • en/asgardeo/mkdocs.yml

Comment thread en/includes/references/asgardeo-cli.md Outdated
Comment thread en/includes/references/asgardeo-cli.md
Comment thread en/includes/references/asgardeo-cli.md
Comment thread en/includes/references/asgardeo-cli.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants