Publish & subscribe to NATS Streaming channels.
npm install -g nats-streaming-cli
Or use npx
. ✨
Usage:
echo 'a new message' | publish-to-nats-streaming-channel <channel-name>
Options:
--encoding -e Encoding to encode the message payload with. Default: utf-8
Usage:
subscribe-to-nats-streaming-channel <channel-name>
Options:
--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.
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.