This tool is used to import an AsyncAPI spec file to Event Portal. Note that it requires access to the Event Portal v2.0 which is currently under early access. If you want access please let your account team know or come chat with us over on the Solace Community Forum
- [Recomended] Typescript Async API Importer for Solace Event Portal
- [Unmaintained] JavaScript AsyncAPI Importer below
You have two ways to use this cli tool
npm install @solace-community/asyncapi-importer -g
npx @solace-community/asyncapi-importer [OPTIONS]
a2ep -f <path_to_AsyncAPI_file>
This tool assumes you have defined your Solace Cloud Token as an environment variable
Env Variable | Description | Required/Optional |
---|---|---|
SOLACE_CLOUD_TOKEN | Solace Cloud Token with the right EP access | Required |
Flag | Description | Notes | Notes |
---|---|---|---|
-f, --file | Path to AsyncAPI file | Required | |
-d, --domain | Event Portal Application Domain Name | Optional | if not defined --> asyncAPI extension |
-dID, --domainID | Event Portal Application Domain ID | Optional | if not defined --> asyncAPI extension |