summaryrefslogtreecommitdiff
path: root/cli/README
blob: 1d6df82a1c1992d8ca5a775e9f68716fbd9e42f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# C2EC Management CLI

This cli allows adding Providers and Terminals to the database and deactivating terminals, using the command line.

Before using the commands which connect to the database, you first need to connect to the database (can either be done setting `PGHOST` or within the CLI using the `db` command).

The CLI will take care of generating the access tokens for the newly registered terminal and hashing the authorization key of the provider backend.

## Build

`go build .`

## Run 

`./c2ec-cli`

## Environment

You can set `PGHOST` to connect automatically to the database.

## Actions

The cli offers following capabilities:

Registering Wallee Provider: `rp`

Registering a Wallee Termina: `rt`

Deactivating a Terminal: `dt`