# nats-streaming-cli

> Publish & subscribe to NATS Streaming channels.

Latest version **1.2.3** (published 2024-03-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install nats-streaming-cli
pnpm add nats-streaming-cli
yarn add nats-streaming-cli
bun add nats-streaming-cli
```

Provides the commands `nats-streaming-stats`, `publish-to-nats-streaming-channel`, `subscribe-to-nats-streaming-channel`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2024-03-01 |
| First published | 2019-08-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 5 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | nats streaming, message queue, message broker, publish, subcribe, command line, cli |

## Links

- npm: https://www.npmjs.com/package/nats-streaming-cli
- Repository: https://github.com/derhuerst/nats-streaming-cli
- Issues: https://github.com/derhuerst/nats-streaming-cli/issues
- npm.io page: https://npm.io/package/nats-streaming-cli

## Dependencies (5)

- [mri](https://npm.io/package/mri.md) ^1.1.4
- [split2](https://npm.io/package/split2.md) ^3.1.1
- [cli-table3](https://npm.io/package/cli-table3.md) ^0.6.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [node-nats-streaming](https://npm.io/package/node-nats-streaming.md) ^0.3.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2024-03-01
- 1.2.2 — 2021-01-24
- 1.2.1 — 2021-01-24
- 1.2.0 — 2021-01-24
- 1.1.0 — 2021-01-24
- 1.0.2 — 2020-09-17
- 1.0.1 — 2020-09-17
- 1.0.0 — 2019-08-09

## README

# nats-streaming-cli

**Publish & subscribe to [NATS Streaming (a.k.a. STAN)](https://web.archive.org/web/20230601075022/https://docs.nats.io/legacy/stan/intro) channels.**

Note that NATS Streaming had been deprecated for a long time, and has now reached its end of life.

[![npm version](https://img.shields.io/npm/v/nats-streaming-cli.svg)](https://www.npmjs.com/package/nats-streaming-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/nats-streaming-cli.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)


## Installing

```shell
npm install -g nats-streaming-cli
```

Or use [`npx`](https://npmjs.com/package/npx). ✨


## Usage

```
Usage:
    echo 'a new message' | publish-to-nats-streaming-channel <channel-name>
Options:
	--silent    -s  Don't log IDs of published messages.
	--encoding  -e  Encoding to encode the message payload with. Default: utf-8
```

```
Usage:
    subscribe-to-nats-streaming-channel <channel-name>
Options:
	--start     -s  Start with the message having this sequence nr.
	--encoding  -e  Encoding to decode the message payload with. Default: utf-8
	--format    -f  How to format the messages. json, raw, inspect (default)
	--ack       -a  Acknowledge the messages received.
	--metadata  -m  Print the message payload along its metadata.
```

```
Usage:
    nats-streaming-stats
Options:
	--json                Format data as JSON.
	--raw                 Print raw NATS Streaming response.
Example:
    nats-streaming-stats
```


## Contributing

If you have a question or have difficulties using `nats-streaming-cli`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/nats-streaming-cli/issues).

---
_Source: https://npm.io/package/nats-streaming-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
