# bi-service-cli

> CLI plugin module for bi-service

Latest version **2.0.1** (published 2018-05-11) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install bi-service-cli
pnpm add bi-service-cli
yarn add bi-service-cli
bun add bi-service-cli
```

## 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 | 2.0.1 |
| Published | 2018-05-11 |
| First published | 2017-10-09 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.4.0 |
| Dependencies | 4 |
| Unpacked size | 63.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Bohemia Interactive |
| Maintainers | bistudio, fogine, jervant |
| Keywords | cli, bi-service |

## Links

- npm: https://www.npmjs.com/package/bi-service-cli
- npm.io page: https://npm.io/package/bi-service-cli

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ~2.3.0
- [lodash](https://npm.io/package/lodash.md) ~4.17.4
- [bi-vantage](https://npm.io/package/bi-vantage.md) ^1.8.0
- [easy-table](https://npm.io/package/easy-table.md) 1.1.0

## 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

- 2.0.1 (latest) — 2018-05-11
- 2.0.0 (pre) — 2018-01-03
- 2.0.0-alpha — 2017-10-09

## README

[![Build Status](https://travis-ci.org/BohemiaInteractive/bi-service-cli.svg?branch=master)](https://travis-ci.org/BohemiaInteractive/bi-service-cli)   

Provides a `bi-service` based `App` which spies on `AppManager`'s apps to provide
integrity status of the running service.

### Integration

```javascript

var Service = require('bi-service').Service;

//your service definition
module.exports = new Service;

//hookup the plugin to the bi-service
require('bi-service-cli');
```

Require the plugin module preferably at the bottom of your index.js file of your project (aka. where your Service definition should be)

### bi-service project config

Add the cli app

```javascript
{
    listen: {
        cli: {
            port: '3000'
        }
    },
    apps: {
        //It expects the app to be under "apps.cli" name
        cli: {
            baseUrl: {$join: [
                'http://127.0.0.1:',
                {$ref: '#listen/cli/port'}
            ]},
            listen: {$ref: '#listen/cli/port'},
            show: false //if true - attaches REPL node console to the service process
        }
    }
}
```

**TIP:** When you want to quickly show the REPL console and editing of the config file is not desirable, you can override the config option inline like so:
> node bin/www apps.cli.show 1  

### Using the console

After you are connected to the console. The `help` command is your friend.  
Use it to get an overview of available commands and their usage 

### REST API

GET `/api/v1.0/integrity` - responds with `409` status in case of integrity error or `200` signalizing all OK.

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