Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hemerajs/hemera-cli

CLI for Hemera
https://github.com/hemerajs/hemera-cli

cli hemera monitoring

Last synced: about 2 months ago
JSON representation

CLI for Hemera

Awesome Lists containing this project

README

        

# Hemera-cli
[![NPM Downloads](https://img.shields.io/npm/dt/hemera-cli.svg?style=flat)](https://www.npmjs.com/package/hemera-cli)
[![npm](https://img.shields.io/npm/v/hemera-cli.svg?maxAge=3600)](https://www.npmjs.com/package/hemera-cli)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)

## Install

```js
npm install -g hemera-cli
hemera-cli
```

## Commands

### Create plugin

Create a basic plugin hemera plugin with a test suite.

```
$ create plugin
```

### List services

List all available services in your network.

__Prerequisites__

You service have to use the [hemera-stats](https://github.com/hemerajs/hemera/tree/master/packages/hemera-stats) plugin. Look at this [example](/examples/test-server.js).

```
$ connect
$ services
```

### List actions

List all available actions in your network.

__Prerequisites__

You service have to use the [hemera-stats](https://github.com/hemerajs/hemera/tree/master/packages/hemera-stats) plugin. Look at this [example](/examples/test-server.js).
```
$ connect
$ actions
```

### Start a request

Start a request against a server method and print the ouput in a coloured YAML-style, perfect for CLI output.

```
$ connect
$ act --pattern topic:math,cmd:add,a:2,b:44
$ result: 46
```