1.2.3 • Published 10 months ago
nats-streaming-cli v1.2.3
nats-streaming-cli
Publish & subscribe to NATS Streaming (a.k.a. STAN) channels.
Note that NATS Streaming had been deprecated for a long time, and has now reached its end of life.
Installing
npm install -g nats-streaming-cli
Or use npx
. ✨
Usage
Usage:
echo 'a new message' | publish-to-nats-streaming-channel <channel-name>
Options:
--silent -s Don't log IDs of published messages.
--encoding -e Encoding to encode the message payload with. Default: utf-8
Usage:
subscribe-to-nats-streaming-channel <channel-name>
Options:
--start -s Start with the message having this sequence nr.
--encoding -e Encoding to decode the message payload with. Default: utf-8
--format -f How to format the messages. json, raw, inspect (default)
--ack -a Acknowledge the messages received.
--metadata -m Print the message payload along its metadata.
Usage:
nats-streaming-stats
Options:
--json Format data as JSON.
--raw Print raw NATS Streaming response.
Example:
nats-streaming-stats
Contributing
If you have a question or have difficulties using nats-streaming-cli
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.