NATS Command Line Interface

NATS Authors·NATSAuthors.CLI

A command line utility to interact with and manage NATS.

winget install --id NATSAuthors.CLI --exact --source winget

Latest 0.5.0·September 17, 2026

Release Notes

NATS Context Improvements

When creating a context you can now pass --embed to embed the credential files and secrets directly into the context JSON file. This makes it easier to mount these into containers.

You can also now use resolvers to load data from other sources:

Scheme Source
file://path or bare path Reads a file, expands ~ and $VAR
op://vault/item/field Reads from the 1Password CLI
nsc://operator/account/user Reads creds files from nats auth or nsc stores
env://ENV Reads environment variables
data:;base64,<payload> Inline RFC 2397 payload, base64-decoded

These can be used in credentials, nkeys, user JWT, user seed, token and password. Again making it easier to configure containers and other similar setups.

Query historical data

Many commands in nats server report and nats server request can now query nats audit archives using the --archive flag.

Using this you can query historical archives using familiar commands and they would represent a point in time in the past.

Homebrew Core

You can now just do brew install nats as we are now included in the Homebrew Core repo

NATS Server 2.15 Features

See the NATS Server 2.15 Release Notes for background on these commands.

• Adds server cluster rescue command. • Stream desired state support • Support stream, cluster and meta evacuate in nats stream cluster and nats server cluster commands • Add nats backup command for editing stream backups on disk • Support domains in the system account for API level >=5 • Support canceling a Stream move in nats stream cluster command

Enhancements

• Add --throughput flag to nats bench generator commands • Add --archive to read-only nats server req * and nats server report * commands • Add fast batch publish support to nats bench • Rework nats context command to use registry, backends and resolvers • Add --tls-first as a hidden alias for --tlsfirst • README:How to add authentication • Render object metadata if present • Adds a decr utility to the nats counter command • Add duration flag to nats bench • Handle non-scoped keys in nats auth • Migrate Homebrew installs to use the Core formula • Add --jitter flag to nats pub • Update nats stream restore document • Add nats auth nuid command

Bug Fixes

• Fixes potential out of range index in nats bench • Improve error handling and UX in FIPS modes • Skip badly formed micro responses • Align nats cheat names with command names • Don't allow peer removal when we find multiple leaders • Fix nats pub ignoring piped STDIN when STDOUT is redirected • Fix nats pub command display for large numbers of messages • Fix panic in nats bench command • Remove unused --json • Pass Subject when using --raw flag in nats sub • Set the @at prefix for --schedule-after messages in nats pub • Correctly handle --no-republish in nats stream edit • Ensure durations do not become invalid around max Int64 • Fix error handling and msg count in nats sub command

New Contributors

• @jainal09 made their first contribution in https://github.com/nats-io/natscli/pull/1647 • @pjaudiomv made their first contribution in https://github.com/nats-io/natscli/pull/1674 • @holyjak made their first contribution in https://github.com/nats-io/natscli/pull/1679 • @tilakraj94 made their first contribution in https://github.com/nats-io/natscli/pull/1699 • @chrisfinazzo made their first contribution in https://github.com/nats-io/natscli/pull/1708 • @jtnats made their first contribution in https://github.com/nats-io/natscli/pull/1710 • @alirezaarzehgar made their first contribution in https://github.com/nats-io/natscli/pull/1724

Full Changelog:https://github.com/nats-io/natscli/compare/v0.4.0...v0.5.0

Installer type: zip

x86—9F5C025F4469407C9BFD203074EAFCA3DED2E9FD1186A71351D078DCD6A3B1EF
x64—1F1EA2B5FF1ACF97E0E1C486B1695EDC64256233C70C4E888CCE2370FD549025
arm64—2AD2D4443A1E4D8F4F16C1A1EAD16CE88BC5A2A14A94163A87F434E1B9D49EC3

Details

Homepage
https://github.com/nats-io/natscli
License
Apache-2.0
Publisher
NATS Authors
Support
https://github.com/nats-io/natscli/issues

Older versions (12)

0.4.0
x86—D3B89CCCE0F12FD61123A8B24DA703A86310C9541B18FE746041D04605705E09
x64—72F87F901B6026F2B749DBF77B9B2D82590643E7C35F101809FCD5A01486C407
arm64—6261AD31EE5207034693FA3FE1AEA33FC6652284E2D58F3E9932296647E517FE
0.3.2
x86—E8BA8B26E1B179F923D78828F78BD7F39CC08CA4F116567FA130260D90AF32F8
x64—E69872F0BD2D308FEFB9E723FD61A23B024A914DD95373AA0693BA01A3496439
arm64—4DD643E50D978B116F14F2FEF1CC0874D2616E500EED69D08F1F97070F8610E4
0.3.1
x86—7A7C59D2322E9B69E4AB8B9C6AC75DAE7A702812858EFB5158E84A5774F62DD4
x64—4B9C1A5E2B9DB9216773F0C950B51AD4F1076CF2C2BAC8C2FBA48231D8E38DAD
arm64—B74E2E9ECE93DCDE3010CCDDCB6AE9E48680CD34F5FCD86A7BFE60C694F327AD
0.3.0
x86—D9B7F1B8E97D27AE0B90139E67F4CE363044CBF6BF0EB8634E1A21B82A8A09F4
x64—D0105D295EC2A6091D9B71BF41EBAABB2569F02F4DD0C9265A3849A5110DD24C
arm64—F3AD7909BF3DC910C322979B087FFF89A47125B0EB7A217190ACE4C3701C7165
0.2.4
x86—83D9FDB74EFBCD72A484240F56891A73B9876CDC515134FB0481BB0AA0024D1A
x64—992525A4EE7DA6122AC15FDEF4DF55B4E9B19058758748C6BCE14A443574FE25
arm64—D383316564781050D44D9769F50A72FA4B1C8DD59AB1A6284399397238636B8C
0.2.3
x86—EAB812DBC0C54E42FAA89A7450F628B87E91F8F1130811A542B8CE56BD85EFC3
x64—6B412D2C805BB4B184F0188EE0B3607847201B39EDFB4E6966FEF21B3A8D6B9D
arm64—BCC7FA50E24B2ABBF33E259D5CEB72CBB3EC45FADC5F40B16693E9CFEF0D8BFD
0.2.2
x86—A77165A4834EB00D7C20599E1D7220D0A45CBAFF1DF99ED4211884CB1690B090
x64—A6650790332B0B208395960391F30742CD16AA038CA7699BE6119C0C92A53560
arm64—DF9F162B05489AD19DDC98FB92AB2A683166B0C21D576567E8B30D8C01DC955C
0.2.1
x86—4A0C3B4A12E8EB40A9B82DFA17E2D61D6BB56E136B8677E838C3819D08E080FB
x64—8B5E43581A4A233A4A1167249BC49FB5A44CA7FCD674458504B680D1CA8E1F51
arm64—20401C4418CDCC32A60C842F8D1A9FC82E01001CD3F05471F691289EB812315C
0.2.0
x86—3E68C4653504828B9AE965E14ED9947619BEFC9081ECAE830A1281DAD6BC7F30
x64—448C499855CBE84C0FAE016F02D44EEF85314A182F7ED0ED9C62C898DBA1F95F
arm64—98CE6ECE6100159D5E0D9E19720BDF2E08FB8ADCC406DFB7388590853DEE2540
0.1.6
x86—652848F903773A2FA5B21AC124EA9C16C541ADA580AAB6930F58845B491F1D4B
x64—AE1A6B858205F060A0FCB93DAF22F39BE38FBDF8341F77704AEE2AAD11F70C67
arm64—AA6A6C136C37136DDEB817C8530B5CA76106F5780107E77DD78F310A71B53CB6
0.1.5
x86—3325E343085DCB88A4BCAB46729E996DC2FFED55AFC11F3F17CF75E82E6AA3F9
x64—0788600E1E793F006356BC808F9317FDBD210E3C28C6781AB8CB19267BD2B571
arm64—CCD6464C85DA442B1365F274CE513A2690727FC5708D8761E113E18EA3F7ECF3
0.0.35
x64—192D56A4C152687E9E8127314B88720CB6FCF9536BACA84F5CB343C0BEB3075E
arm64—9541044684FCD88EFC7F7CBCCB89F6F30F76A7C0B99CC0FBCC22059B1FD81993
x86—8F6E5D0067F3362BC063C99A51EC7AA9C552885E6CF6ABABE919C5BF3D631E98