Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hemerajs/hemera-cli
- Owner: hemerajs
- License: mit
- Created: 2017-03-06T23:21:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-19T21:12:11.000Z (almost 7 years ago)
- Last Synced: 2024-04-14T05:40:32.755Z (9 months ago)
- Topics: cli, hemera, monitoring
- Language: JavaScript
- Size: 88.9 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```