# @start/cli-lib

> ⬛️ Core CLI lib

Latest version **0.1.0** (published 2018-06-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @start/cli-lib
pnpm add @start/cli-lib
yarn add @start/cli-lib
bun add @start/cli-lib
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-06-02 |
| First published | 2018-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 472 |
| Author | Kir Belevich |
| Maintainers | start |
| Keywords | tasks, runner, start, cli |

## Links

- npm: https://www.npmjs.com/package/@start/cli-lib
- Repository: https://github.com/deepsweet/start
- Homepage: https://github.com/deepsweet/start/tree/master/packages/cli-lib
- Issues: https://github.com/deepsweet/start/issues
- npm.io page: https://npm.io/package/@start/cli-lib

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0-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

- 0.1.0 (latest) — 2018-06-02

## README

# ⬛️ cli-lib

[![npm](https://img.shields.io/npm/v/@start/cli-lib.svg?style=flat-square)](https://www.npmjs.com/package/@start/cli-lib) [![linux](https://img.shields.io/travis/deepsweet/start/master.svg?label=linux&style=flat-square)](https://travis-ci.org/deepsweet/start) [![windows](https://img.shields.io/appveyor/ci/deepsweet/start/master.svg?label=windows&style=flat-square)](https://ci.appveyor.com/project/deepsweet/start) [![coverage](https://img.shields.io/codecov/c/github/deepsweet/start/master.svg?style=flat-square)](https://codecov.io/github/deepsweet/start) [![deps](https://david-dm.org/deepsweet/start.svg?path=packages/cli&style=flat-square)](https://david-dm.org/deepsweet/start?path=packages/cli)

Core CLI lib.

## Install

```sh
$ yarn add --dev @start/cli-lib
# or
$ npm install --save-dev @start/cli-lib
```

## Usage

### Signature

```ts
cliLib(options: {
  file?: string,
  preset?: string,
  reporter?: string,
  taskName?: string,
  taskArgs?: string[]
})
```

### Example

```js
import cliLib from '@start/cli-lib'

cliLib({
  file: options.file,
  preset: options.preset,
  reporter: options.reporter,
  taskName: process.argv[2],
  taskArgs: process.argv.slice(3)
}).catch((error) => {
  if (error !== null) {
    console.log(error)
  }

  process.exit(1)
})
```

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