diff --git a/README.md b/README.md index 5a5ee832a..6a5ce0830 100644 --- a/README.md +++ b/README.md @@ -18,22 +18,27 @@ HTML template for the [AsyncAPI Generator](https://github.com/asyncapi/generator - [Usage](#usage) - [Supported parameters](#supported-parameters) - [Development](#development) -- [Contributors ✨](#contributors-%E2%9C%A8) +- [Contributors ✨](#contributors-) ## Usage +Install AsyncAPI CLI + ```bash -ag asyncapi.yaml @asyncapi/html-template -o output +npm install -g @asyncapi/cli ``` -If you don't have the AsyncAPI Generator installed, you can install it like this: +Generate using CLI ```bash -npm install -g @asyncapi/generator +asyncapi generate fromTemplate @asyncapi/html-template@0.28.0 ``` +You can replace `` with local path or URL pointing to [any AsyncAPI document](https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka.yml). +Look into [Releases](/asyncapi/html-template/releases) of this template to pick up the version you need. It is not recommended to always use the latest in production. Always use a specific version. + ## Supported parameters | Name | Description | Required | Default | Allowed values | Example |