Files
cocos/cli
fbugarski 95a6957f4e Organize help output
Signed-off-by: fbugarski <filipbugarski@gmail.com>
2023-08-04 16:33:05 +02:00
..
2023-08-04 16:33:05 +02:00
2023-08-04 16:33:05 +02:00
2023-06-19 16:32:46 +02:00
2023-08-04 16:33:05 +02:00
2023-08-04 16:33:05 +02:00
2023-07-17 16:39:01 +02:00
2023-07-14 14:16:32 +02:00

Agent CLI

This repository contains the command-line interface (CLI) tool for interacting with the UltraVioletrs Agent service. The CLI allows you to perform various tasks such as running computations, uploading algorithms and datasets, and retrieving results.

Build

From the project root:

make agent-cli

Usage

Run Computation

To run a computation, use the following command:

./build/agent-cli run --computation '{"name": "my-computation"}'

Upload Algorithm

To upload an algorithm, use the following command:

./build/agent-cli algo /path/to/algorithm

Upload Dataset

To upload a dataset, use the following command:

./build/agent-cli data /path/to/dataset.csv

Retrieve result

To retrieve the computation result, use the following command:

./build/agent-cli result

Installtion

If you want to install the CLI globally, you can use the following command:

sudo cp build/agent-cli /usr/local/bin/

This will make the agent-cli executable available from any location in your terminal.

Run Computation

To run a computation, use the following command:

agent-cli run --computation '{"name": "my-computation"}'

Upload Algorithm

To upload an algorithm, use the following command:

agent-cli algorithm /path/to/algorithm

Upload Dataset

To upload a dataset, use the following command:

agent-cli dataset /path/to/dataset.csv

Retrieve result

To retrieve the computation result, use the following command:

agent-cli result