https://github.com/vasyahuyasa/stancli
Send data to nats streaming from command line
https://github.com/vasyahuyasa/stancli
cli go nats-streaming
Last synced: 7 months ago
JSON representation
Send data to nats streaming from command line
- Host: GitHub
- URL: https://github.com/vasyahuyasa/stancli
- Owner: vasyahuyasa
- License: mit
- Created: 2019-06-24T09:43:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-26T14:07:59.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T07:29:19.811Z (9 months ago)
- Topics: cli, go, nats-streaming
- Language: Go
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stancli
Utility for send arbitrary data to nats streaming server from command-line.
#### Packages
[](https://aur.archlinux.org/packages/stancli/)
[](https://github.com/vasyahuyasa/stancli/blob/master/LICENSE)
[](https://github.com/vasyahuyasa/stancli/)## Installation
```shell
$ go get -u github.com/vasyahuyasa/stancli
```## Command-Line Options
```
Usage: stancli [OPTIONS] [FILE]Send data to Nats streaming server.
With no FILE, or when FILE is -, read standard input.Options:
-client_id string
Client ID (default "stan_cli")
-cluster string
Cluster ID (default "nats")
-help
This help text
-subject string
Subject (default "default")
-url string
NATS server url (default "nats://client:123456@localhost:4222")
```## Example usage
```shell
$ cat example/changeEmployee.txt | stancli -subject employees
```