NATS Admin CLI
Last updated
Last updated
The nats
CLI can be used to manage Streams and Consumers easily using it's --config
flag, for example:
This creates a new Stream based on orders.json
. The orders.json
file can be extracted from an existing stream using nats stream info ORDERS -j | jq .config
This edits an existing stream ensuring it complies with the configuration in orders.json
This creates a new Consumer based on orders_new.json
. The orders_new.json
file can be extracted from an existing stream using nats con info ORDERS NEW -j | jq .config