AsyncAPI Bundler CLI

0.7.1 · deprecated · verified Tue Apr 21

asyncapi-bundler-cli is a command-line interface tool designed to combine multiple AsyncAPI specification files into a single document. It efficiently resolves `$ref` pointers to external or internal files, consolidating them into a single, comprehensive AsyncAPI definition. While this package currently stands at version 0.7.1, its dedicated functionality for bundling AsyncAPI documents has largely been integrated into the official `@asyncapi/cli` package (which reached version 6.0.0 a month ago), making the `asyncapi-bundler-cli` effectively superseded. It likely has an irregular release cadence as focus has shifted to the more comprehensive official CLI, which offers a broader suite of AsyncAPI development tools, including bundling, validation, and generation. Its primary differentiator was its singular focus on bundling via a dedicated CLI, a role now subsumed by the official toolkit.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates global installation and basic usage of the CLI to bundle AsyncAPI documents from YAML/JSON files.

npm install -g asyncapi-bundler-cli

# Bundle a single AsyncAPI file and output to JSON
asyncapi-bundler-cli ./path/to/asyncapi.yaml > output.json

# Bundle multiple AsyncAPI files (example of complex usage, specific options may vary by version)
# Note: Refer to asyncapi/bundler documentation for exact options like baseDir if needed.
asyncapi-bundler-cli --baseDir . spec/main.yaml spec/channels.yaml spec/messages.yaml > bundled-api.yaml

view raw JSON →