AsyncAPI CLI
$ asyncapi Foundation Low RiskThe 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.
brew install asyncapi Direct asyncapi validate --diagnostics-format json and asyncapi bundle run locally on repository specs without uploading schemas to an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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 jsonsupported onasyncapi validateasyncapi start studiolaunches a blocking local server
validate is read-only; bundle and generate write only to explicit --output paths.
- Clear separation between
validateand write commands
Available via Homebrew, npm, and npx @asyncapi/cli across macOS, Linux, and Windows.
- Distributed on both Homebrew and npm
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
Official AsyncAPI Initiative / Linux Foundation repository (asyncapi/cli) under Apache-2.0.
- Official Linux Foundation / AsyncAPI organization
Comprehensive CLI documentation at asyncapi.com/docs/tools/cli and self-describing --help.
- Official docs at asyncapi.com/docs/tools/cli
Security, Auth & Guardrails
None required; operates on local or public URL AsyncAPI spec files.
100% free and Apache-2.0 open-source.
# 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
asyncapi validate asyncapi.yaml --diagnostics-format json
Validates the AsyncAPI document read-only and outputs Spectral-backed diagnostics as JSON.
Controlled Writes & Previews
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 jsonreturns structured validation errors. - + Official Linux Foundation tool supporting both AsyncAPI 2.x and 3.x specs.
- + Easy installation via Homebrew (
brew install asyncapi) ornpx @asyncapi/cli.
Caveats & Pitfalls
- ! Running
asyncapi start studiostarts a persistent local Studio UI server that blocks the shell. - ! Commands like
asyncapi newprompt interactively if template/file flags are omitted.