cli

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

Agent CLI

This repository contains the command-line interface (CLI) tool for interacting with the 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 cli

Usage

Run Computation

To run a computation, use the following command:

./build/cocos-cli run --computation '{"name": "my-computation"}'
Upload Algorithm

To upload an algorithm, use the following command:

./build/cocos-cli algo /path/to/algorithm
Upload Dataset

To upload a dataset, use the following command:

./build/cocos-cli data /path/to/dataset.csv
Retrieve result

To retrieve the computation result, use the following command:

./build/cocos-cli result

Installtion

To use the CLI, you have the option to install it globally on your system. Here's how:

Build the CLI:

Navigate to the project root and run the following command to build the CLI binary:

make install-cli

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlgorithmsCmd

func NewAlgorithmsCmd(sdk agent.Service) *cobra.Command

func NewAttestationCmd

func NewAttestationCmd(sdk agent.Service) *cobra.Command

func NewDatasetsCmd

func NewDatasetsCmd(sdk agent.Service) *cobra.Command

func NewResultsCmd

func NewResultsCmd(sdk agent.Service) *cobra.Command

func SetSDK

func SetSDK(s agent.Service)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL