Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@asyncapi/cli

Package Overview
Dependencies
Maintainers
3
Versions
400
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asyncapi/cli

AsyncAPI CLI CLI to work with your

  • 0.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22K
increased by11.71%
Maintainers
3
Weekly downloads
 
Created
Source

AsyncAPI logo
AsyncAPI CLI

CLI to work with your AsyncAPI files. Currently supports validation, but it is under development for more features.

Install

$ npm install --global @asyncapi/cli

Getting Started

Go ahead and run command asyncapi --help to get complete help for using CLI. If having doubt about any particular command do run asyncapi <command> --help to get help for that command.

CLI

Help string for all the supported commands

  • asyncapi --help
USAGE

asyncapi [options] [command]

OPTIONS

-h, --help display help for command
-v, --version output the version number

COMMANDS

validate validate asyncapi file 
context  Manage contexts
  • asyncapi validate --help
USAGE

asyncapi validate [options]

OPTIONS

-h, --help display help for command
-f, --file <spec-file-path> Path of the asyncapi file
-c, --context <saved-context-name>  context name to use
-w, --watch Enable Watch Mode (not implemented yet)
  • asyncapi context --help
USAGE

asyncapi context [options] [command] 

Context is what makes it easier for you to work with multiple AsyncAPI files.
You can add multiple different files to a contextThis way you do not have to pass 
--file flag with path to the file every time but just --context flag with reference name
You can also set a default context, so neither --file nor --context flags are needed.

OPTIONS

-h, --help display help for command 

COMMANDS

list list of all saved contexts 
current see current context 
use <context-name> set given context as default/current
add <context-name> <spec-file-path> add/update context
remove <context-name> remove a context

For now --context flag is requried to run validate command

FAQs

Package last updated on 27 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc