nats-streaming-cli

Publish & subscribe to NATS Streaming channels.

Usage no npm install needed!

<script type="module">
  import natsStreamingCli from 'https://cdn.skypack.dev/nats-streaming-cli';
</script>

README

nats-streaming-cli

Publish & subscribe to NATS Streaming channels.

npm version ISC-licensed support me via GitHub Sponsors chat with me on Twitter

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.