# Install nats with Homebrew

Utility for NATS Server and JetStream administration. Version 0.5.1 via Homebrew; verified 2026-10-26.

## Install

```sh
sudo av install brew:nats
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nats
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:nats
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nats>
- **Version:** 0.5.1
- **Source summary:** Utility for NATS Server and JetStream administration
- **Homepage:** <https://github.com/nats-io/natscli>
- **Repository:** <https://github.com/nats-io/natscli>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/nats-io/natscli/archive/refs/tags/v0.5.1.tar.gz>
- **Last updated:** 2026-10-26T18:50:54Z
- **Generated:** 2026-11-04T12:20:42+00:00

## Executables

- nats (cli)
- nats (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux

## Freshness

- Page generated: 2026-11-04
- Package-manager version: 0.5.1
- Package-manager updated: 2026-10-26
- Local data: ok
- Upstream repository: https://github.com/nats-io/natscli
- Upstream latest detected: v0.5.1 (current)
## Project history and usage

NATS CLI is the official command-line utility for interacting with NATS, administering JetStream resources, inspecting servers, managing contexts, and testing messaging workloads.

### Project history

NATS CLI was developed as the official command-line client and administrative utility for the NATS ecosystem. It consolidates messaging operations, JetStream management, monitoring, benchmarking, and server inspection in the `nats` executable.

The project stores named connection contexts as JSON documents, allowing server URLs and authentication settings to be reused across commands.

### Adoption history

The CLI is maintained in the official nats-io organization and is distributed through Homebrew as well as release archives and installation channels documented by the project.

Its scope expanded with the NATS ecosystem, providing administrative workflows for JetStream, Key-Value stores, Object Stores, services, server monitoring, and authentication contexts.

### How it is used

Operators use `nats pub`, `nats sub`, and `nats request` for messaging; `nats stream`, `consumer`, `kv`, and `object` commands for JetStream resources; and `nats server` commands for inspection and administration.

Named contexts created with `nats context add` retain server and authentication settings. Credentials files may be referenced by a context, but the official CLI does not prescribe one fixed credentials-file location.

### Why package nerds care

The package gives operators one official executable for both everyday publish/subscribe testing and substantial NATS or JetStream administration. Named contexts make multiple servers and authentication profiles manageable from a package-installed CLI.

### Timeline

- Early 2020s: The official natscli project established the `nats` command as the unified NATS administrative CLI.
- 2024: The v0.1 series continued expanding operational and authentication functionality.
- 2026: Official releases continue to add JetStream, reporting, monitoring, and server-management improvements.

### Related projects

- Related official projects include nats-server, NATS client libraries, the nsc account-management tool, and the wider JetStream ecosystem.

### Sources

- Official NATS documentation: https://docs.nats.io/
- Official releases: https://github.com/nats-io/natscli/releases
- Official repository and README: https://github.com/nats-io/natscli


## Security Notes

No matching local secret-handling manifest was found for nats. Package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/nats/context
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nats
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [nats-server](https://pkg.so/brew/nats-server/) - NATS CLI is the documented client and administrative companion for NATS Server, providing publish/subscribe tests and management of the server's built-in JetStream features.

  Sources: <https://docs.nats.io/concepts/getting-started/> · <https://github.com/nats-io/natscli#readme> · <https://github.com/nats-io/nats-server#readme>

## Combined YAML source

View the package source record on GitHub. [combined/nats.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nats.yml)


## Sources

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
