NATS Command Line Interface

NATS Command Line Interface 0.5.0

A command line utility to interact with and manage NATS.

  • By NATS Authors
  • Open Source
  • Updated Sep 17, 2026
Download for Windows

About NATS Command Line Interface

A command line utility to interact with and manage NATS.

What's new in 0.5.0

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 …

Full release notes »

Technical details

PublisherNATS Authors
Version0.5.0
Release date2026-09-17
LicenseApache-2.0
Installer typezip
Architecturex86, x64, arm64
Package IDNATSAuthors.CLI

Links & install command

Install NATS Command Line Interface from the command line with Windows Package Manager (winget):

winget install --id=NATSAuthors.CLI -e

Older versions

  • 0.4.0
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0