# ketrics-client

> The Ketrics Command Line Interface (CLI) is a unified tool to manage your KETRICS applications.

Latest version **1.7.0** (published 2022-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install ketrics-client
pnpm add ketrics-client
yarn add ketrics-client
bun add ketrics-client
```

Provides the command `kcli`.

## 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.7.0 |
| Published | 2022-08-25 |
| First published | 2022-08-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ketrics |

## Links

- npm: https://www.npmjs.com/package/ketrics-client
- npm.io page: https://npm.io/package/ketrics-client

## Dependencies (5)

- [yargs](https://npm.io/package/yargs.md) ^17.4.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.5
- [form-data](https://npm.io/package/form-data.md) ^4.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) 8.5.1

## Recent versions

- 1.7.0 (latest) — 2022-08-25
- 1.6.1 — 2022-08-23

## README

## Deploy and Execute Ketrics APPs APIs

### Local testing

```
tsc && node dist/index.js deploy -c .env.local -f sample/app-test.zip

tsc && node dist/index.js deploy -f sample/app-test.zip

tsc && node dist/index.js test -f sample/app-test.zip

tsc && node dist/index.js token
```

### Install Locally

```
tsc && npm install -g .

tsc && npm pack && sudo npm i -g ketrics-cli-1.5.1.tgz
```

### Example Execution

- -c is optional

```
kcli deploy sample/app-test.zip -c .env.local

kcli deploy sample/app-test.zip


kcli init app-test

tsc && node dist/index.js execute "API.fetchApplicationParameters"

tsc && node dist/index.js execute "API.fetchApplicationParameters" -p '{"database": "COMSMARTFOODS20"}'

```

## Ketrics Client Docker Image

### BUILD IMAGE

```
export DOCKER_DEFAULT_PLATFORM=linux/amd64

docker build -t ketrics/ketrics-client .

docker image push ketrics/ketrics-client
```

### TEST IMAGE

```
docker run -it --rm -v $(PWD)/.env.local:/app/.env.local -e API_HANDLER="API.procesarClientes" -e API_PAYLOAD='{"database": "COMSMARTFOODS20"}'  ketrics/ketrics-client
```

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