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
- Host: GitHub
- URL: https://github.com/quartercastle/nats-cli
- Owner: quartercastle
- License: mit
- Created: 2018-07-13T08:41:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:16:45.000Z (over 2 years ago)
- Last Synced: 2025-02-03T22:02:24.826Z (3 months ago)
- Topics: cli, nats, pubsub, tool
- Language: JavaScript
- Size: 2.13 MB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```