An open API service indexing awesome lists of open source software.

https://github.com/quartercastle/nats-cli

Simple CLI for NATS, can publish/subscribe to subjects
https://github.com/quartercastle/nats-cli

cli nats pubsub tool

Last synced: 2 months ago
JSON representation

Simple CLI for NATS, can publish/subscribe to subjects

Awesome Lists containing this project

README

        

# nats-cli

Publish or subscribe to NATS subjects from the cli.

### Install
```sh
npm install -g nats-cli
```

### Usage
```sh
# 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'
```