Skip to content

Conversation

@asyncapi-bot
Copy link
Contributor

@asyncapi-bot asyncapi-bot commented Jun 23, 2025

Updated cli documentation is available and this PR introduces update to cli folder on the website

Summary by CodeRabbit

  • Documentation
    • Updated CLI usage documentation to version 3.2.0, reflecting new and updated commands, flags, and examples.
    • Added documentation for the new autocomplete command.
    • Documented new flags for generate models and validate commands.
    • Updated and clarified descriptions, usage, and options for start studio and start preview commands.

@netlify
Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for asyncapi-website ready!

Name Link
🔨 Latest commit ff37461
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/6858c85f0016c70008dc02ee
😎 Deploy Preview https://deploy-preview-4205--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 23, 2025

Walkthrough

The CLI usage documentation was updated to reflect AsyncAPI CLI version 3.2.0. Changes include new commands and flags, updated command signatures and descriptions, reordering and swapping of start studio and start preview commands, and refreshed usage examples and code reference URLs.

Changes

File(s) Change Summary
markdown/docs/tools/cli/usage.md Updated for CLI v3.2.0: added autocomplete command, new flags for generate models and validate, swapped and revised start studio and start preview commands, updated command signatures, descriptions, examples, and code reference URLs.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant CLI

    User->>CLI: asyncapi autocomplete [SHELL]
    CLI-->>User: Provides shell autocomplete scripts

    User->>CLI: asyncapi generate fromTemplate [ASYNCAPI] [TEMPLATE]
    CLI-->>User: Generates output using template (optional args)

    User->>CLI: asyncapi start preview [SPEC-FILE] [flags]
    CLI-->>User: Starts minimal Studio instance (no editing)

    User->>CLI: asyncapi start studio [SPEC-FILE] [flags]
    CLI-->>User: Starts full Studio instance (with editing)

    User->>CLI: asyncapi validate [flags]
    CLI-->>User: Validates AsyncAPI file, applies new warning suppression flags
Loading

Possibly related PRs

Suggested labels

autoapproved, autoupdate

Suggested reviewers

  • quetzalliwrites
  • TRohit20
  • Aahil13
  • VaishnaviNandakumar
  • asyncapi-bot-eve

Poem

A bunny hopped through docs so bright,
Updating commands with pure delight.
New flags and swaps, oh what a spree!
CLI shines in version three-point-two-oh,
With autocomplete and warnings low.
Hop, hop, hooray—
AsyncAPI leads the way! 🐇✨


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (275278b) to head (ff37461).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4205   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          778       778           
  Branches       144       144           
=========================================
  Hits           778       778           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
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: 0

🧹 Nitpick comments (2)
markdown/docs/tools/cli/usage.md (2)

75-75: Specify fenced code block languages
Several code fences lack a language specifier (lines 75, 456, 778, 807). Please add hints like bash or sh to satisfy markdownlint and improve readability.

Also applies to: 456-456, 778-778, 807-807


791-791: Typo in flag description
In the --suppressLogs flag description, "detiled" should be corrected to "detailed".

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 275278b and ff37461.

📒 Files selected for processing (1)
  • markdown/docs/tools/cli/usage.md (31 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
markdown/docs/tools/cli/usage.md

75-75: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


456-456: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


778-778: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


807-807: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)

🪛 LanguageTool
markdown/docs/tools/cli/usage.md

[uncategorized] ~776-~776: Possible missing comma found.
Context: ...new local instance of Studio in minimal state bundling all the refs of the schema fil...

(AI_HYDRA_LEO_MISSING_COMMA)

⏰ Context from checks skipped due to timeout of 180000ms (8)
  • GitHub Check: Automerge PR autoapproved by a bot
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Test NodeJS PR - macos-13
  • GitHub Check: Test NodeJS PR - ubuntu-latest
  • GitHub Check: Lighthouse CI
  • GitHub Check: Test NodeJS PR - windows-latest
🔇 Additional comments (8)
markdown/docs/tools/cli/usage.md (8)

30-30: Update CLI version to 3.2.0
The version line has been correctly bumped to @asyncapi/cli/3.2.0.


41-69: Commands list reformatted and new command added
The dash list has been converted to bullets and now includes the new autocomplete command in the top-level commands list.


71-98: Document new autocomplete command
The asyncapi autocomplete [SHELL] section is fully fleshed out with usage, arguments, flags, description, and examples.


458-461: Make ASYNCAPI and TEMPLATE arguments optional
The generate fromTemplate signature has been updated to [ASYNCAPI] [TEMPLATE], reflecting that both parameters are now optional.


535-536: Add Go-specific flags for model generation
The new --goIncludeComments and --goIncludeTags flags are correctly documented under asyncapi generate models.


774-783: Swap start preview section
The asyncapi start preview heading, description, and usage have been moved and updated per version 3.2.0. The new minimal Studio preview behavior is clearly presented.


803-809: Swap start studio section
The asyncapi start studio command has been relocated below preview and its usage and flags now match the full Studio launch behavior.


834-835: Document new validation warning flags
The --suppressAllWarnings and --suppressWarnings flags have been added to the validate command, aligning docs with CLI functionality.

@asyncapi-bot asyncapi-bot merged commit 79919cb into master Jun 23, 2025
33 of 34 checks passed
@asyncapi-bot asyncapi-bot deleted the update-cli-docs-400fed2decd2aed138f059c4389cd1d54bf70375 branch June 23, 2025 03:28
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.

3 participants