Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

AsyncAPI CLI

$ asyncapi Foundation Low Risk
AsyncAPI · Design & Docs · Apache-2.0 · macos / linux / windows

The official AsyncAPI Initiative CLI validates, bundles, diffs, converts, and generates code/docs from AsyncAPI 2.x/3.x event-driven specifications. Agents can run asyncapi validate --diagnostics-format json for structured lint results and asyncapi bundle -o to resolve $ref pointers.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install asyncapi
CLI vs MCP Decision CLI Preferred vs MCP

Direct asyncapi validate --diagnostics-format json and asyncapi bundle run locally on repository specs without uploading schemas to an MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

validate --diagnostics-format json emits clean JSON diagnostics and bundle works headlessly, though interactive subcommands like asyncapi new or blocking start studio must be avoided.

  • --diagnostics-format json supported on asyncapi validate
  • asyncapi start studio launches a blocking local server
Trust & Safety 22 / 25

validate is read-only; bundle and generate write only to explicit --output paths.

  • Clear separation between validate and write commands
Setup & Portability 14 / 15

Available via Homebrew, npm, and npx @asyncapi/cli across macOS, Linux, and Windows.

  • Distributed on both Homebrew and npm
Utility & Efficiency 13 / 15

Official all-in-one toolkit for AsyncAPI 2.x/3.x validation, conversion, bundling, and template generation.

  • Covers validation, bundling, diffing, and code/doc generation
Maintenance & Lineage 9 / 10

Official AsyncAPI Initiative / Linux Foundation repository (asyncapi/cli) under Apache-2.0.

  • Official Linux Foundation / AsyncAPI organization
Docs & Verifiability 8 / 10

Comprehensive CLI documentation at asyncapi.com/docs/tools/cli and self-describing --help.

  • Official docs at asyncapi.com/docs/tools/cli

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates on local or public URL AsyncAPI spec files.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# AsyncAPI CLI Agent Rules
- Always pass `--diagnostics-format json` when running `asyncapi validate`.
- Never run `asyncapi start studio` in a non-interactive agent turn (starts a blocking web UI server).
- Pass `--output <file>` explicitly to `asyncapi bundle` and `asyncapi generate`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate an AsyncAPI spec with JSON diagnostics
asyncapi validate asyncapi.yaml --diagnostics-format json

Validates the AsyncAPI document read-only and outputs Spectral-backed diagnostics as JSON.

Controlled Writes & Previews

Bundle multi-file AsyncAPI references into one file
asyncapi bundle asyncapi.yaml --output dist/asyncapi.bundled.yaml

Resolves external $ref files and writes a single self-contained AsyncAPI spec to dist/asyncapi.bundled.yaml.

Strengths for Agents

  • + asyncapi validate --diagnostics-format json returns structured validation errors.
  • + Official Linux Foundation tool supporting both AsyncAPI 2.x and 3.x specs.
  • + Easy installation via Homebrew (brew install asyncapi) or npx @asyncapi/cli.

Caveats & Pitfalls

  • ! Running asyncapi start studio starts a persistent local Studio UI server that blocks the shell.
  • ! Commands like asyncapi new prompt interactively if template/file flags are omitted.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI