/nats-cli

Simple CLI for NATS, can publish/subscribe to subjects

Primary LanguageJavaScriptMIT LicenseMIT

nats-cli

Publish or subscribe to NATS subjects from the cli.

Install

npm install -g nats-cli

Usage

# Listen on all subjects
nats

# Listen on the foo subject
nats foo

# Publish message on the subject foo
nats foo bar

# Listen with wildcards
nats 'foo.>'

# Filter received messages with grep
nats 'foo.*' | grep 'some filter'