GithubHelp home page GithubHelp logo

nats-streaming-cli's Introduction

Nats-streaming Cli

Go Report Card Docker Cloud Build Status

An interactive command line tool for nats-streaming server

Make it easy to monitor and publish message to a nats-streaming server in development

For security reasons ,it's not recommend to use this cli in production!

Support linux and macOS (windows may work, not sure)

Installation

Build from source

  1. Clone this repo
  2. cd to repo path
  3. Run ./build
  4. Put nats-streaming-cli in pkg dir to your $PATH

Docker

If you prefer to use docker:

  1. Clone this repo
  2. cd to repo path
  3. Run docker build -t nats-streaming-cli .

Usage

nats-streaming-cli [options]
Options:
      -h   --host <string>           set nats-streaming server host (default: localhost)
      -p   --port <int>              set nats-streaming server port (default: 4222)
      -m   --http_port <int>         set http monitoring port (default: 8222)
      -cid --cluster_id <string>     set the server cluster ID, if not set, we will try to get cluster id from server monitor endpoint
           --client_id  <string>     specific client id cli use ,if not set, we will use a random client id
      -v   --version                 show version

Notice: cluster id can be get from nats-streaming server's monitor http server

If the monitor http server is disabled ,you should supply the cluster id

Commands

show
  ├─ channel CHANNEL                show a specific channel info
  ├─ channels                       show all channel info
  ├─ server                         show server info
  ├─ store                          show store info
  └─ clients                        show clients info

pub CHANNEL MESSAGE                 publish MESSAGE to CHANNEL

list CHANNEL [START [LIMIT]]        list LIMIT(unlimit if not specific) messages in CHANNEL start at START (0 if not specific)

help                                print this help message

exit                                exit

Notice: show commands rely on the monitor http server

nats-streaming-cli's People

Contributors

xieqiaoyu avatar

Stargazers

Zhuo Chen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.