Publish or subscribe to NATS subjects from the cli.
npm install -g nats-cli
# 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'