nats-sub
and nats-pub
, adds several new capabilities and supports full JetStream management.nats
nats-X.Y.Z-amd64.deb
Then run this command to install the file.yay
package managernats
nats help
nats help [<command>...]
or nats [<command>...] --help
nats cheat
nats cheat --sections
nats cheat <section>>
nats context
nats account
nats pub
nats sub
nats request
nats reply
nats bench
nats events
nats rtt
nats server
nats latency
nats governor
nats stream
nats consumer
nats backup
nats restore
nats kv
nats errors
nats schema
nats context save
nats context create my_context_name
and then edit the created context file (i.e. in ~/.config/nats/context/my_context_name.json
)--select
to the local
one meaning it will be the default when nothing is set.nats
commands are context aware and the nats context
command has various commands to view, edit and remove contexts.nsc
command by specifying an URL, for example to find user new
within the orders
account of the acme
operator you can use this:nsc
, if these are specifically set in the context, the specific context configuration will take precedence.bcrypt
. To take advantage of this, simply replace the plaintext password in the configuration with its bcrypt
hash, and the server will automatically utilize bcrypt
as needed.nats
utility has a command for creating bcrypt
hashes. This can be used for a password or a token in the configuration.