# apival-cli

> ApiVal command line client.

Latest version **1.0.4** (published 2019-02-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install apival-cli
pnpm add apival-cli
yarn add apival-cli
bun add apival-cli
```

Provides the command `apival`.

## 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 | 1.0.4 |
| Published | 2019-02-28 |
| First published | 2019-02-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 22.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sorin Banica |
| Maintainers | sxnb |

## Links

- npm: https://www.npmjs.com/package/apival-cli
- Repository: https://github.com/sxnb/apival
- Homepage: https://github.com/sxnb/apival#readme
- Issues: https://github.com/sxnb/apival/issues
- npm.io page: https://npm.io/package/apival-cli

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [request](https://npm.io/package/request.md) ^2.88.0
- [command-line-args](https://npm.io/package/command-line-args.md) ^5.0.2
- [command-line-usage](https://npm.io/package/command-line-usage.md) ^5.0.5
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.7

## Recent versions

- 1.0.4 (latest) — 2019-02-28
- 1.0.3 — 2019-02-27
- 1.0.2 — 2019-02-27
- 1.0.1 — 2019-02-27
- 1.0.0 — 2019-02-27

## README

# ApiVal

## Client

### Installation

To install the editor, clone the repository, then go to the **cli** folder, and then run

```shell
npm install apival-cli --global
```

### Usage

```shell
./apival-cli --input file.json [--help] [--silent]
```

### Documentation

#### Running a test file

You can run a test file by executing the following command:

```shell
./apival-cli --input path/to/file.json
```

This command will automatically execute every test in the JSON file. To run only one specific test, use the following command:

```shell
./apival-cli --input path/to/file.json --test-name "Test Name"
```

To suppress all output, pass the --silent (or -s) parameter when running apival-cli.


You can find a demo JSON file (generated with the visual editor described below) [here](https://github.com/sxnb/apival/blob/master/docs/demo.json).

## Visual Editor

The visual editor is available at [apival.colorcode.me/editor](http://apival.colorcode.me/editor).

It allows you to define tests, to create and export test files, as well as editing existing text files.

If you want to build the visual editor on your machine, you have to do it using angular-cli. You can find more information about it [here](https://cli.angular.io/).

## About

This tool is a work in progress and is currently developed by Sorin Banica - you can find more about my work [here](http://about.colorcode.me/).

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