You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️All versions have MacOS binaries only: If you want to use nats-cli on other systems, you should to build the binaries manually
Features
Templates
Publishing
Subscribing
Templates this is a useful tool for saving your NATS settings, and reuse them with other commands.
Usage
Usage:
nats-cli [command]
Available Commands:
help Help about any command
publish Publish to subject
subscribe Subscribe to subject
template Manage templates
Flags:
--config string config file (default is $HOME/.nats-cli.yaml)
-h, --help helpfor nats-cli
-t, --toggle Help message for toggle
Use "nats-cli [command] --help"for more information about a command.
Subscribe example
nats-cli sub -a your-nats-server -c nats-cluster-id -s subject -d 24h
Publish example
nats-cli pub -a your-nats-server -c nats-cluster-id -s subject -m '{"json":"here"}'