Skip to content

ETNA CLI is a command line interface that allows you to interact with the ETNA Benchmarking and Analysis Platform. It provides a set of commands to manage your experiments, and results.

Notifications You must be signed in to change notification settings

alpaylan/etna-cli

Repository files navigation

ETNA CLI

Description

ETNA CLI is a command line interface that allows you to interact with the ETNA Benchmarking and Analysis Platform. It provides a set of commands to manage your experiments, and results.

Installation

To install the ETNA CLI, you can use the following CURL command:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/alpaylan/etna-cli/releases/download/v0.1.0/etna-installer.sh | sh

Usage

To get started, you can use the etna-cli --help command to see the list of available commands.

etna --help

The commands are organized in the following categories:

  • experiment: Create, delete, move experiments
  • workload: Create, delete, move workloads within an experiment
  • store: Write a metric, or query the central etna storage
  • check: Run integrity checks on etna, apply fixes in cases.
  • config: Manage the global ETNA configuration
  • setup: Setup the ETNA CLI

Experiment Commands

experiment new

Creates a new experiment with <NAME>, and at location [PATH].

Usage: etna experiment new [OPTIONS] <NAME> [PATH]

Arguments:
<NAME>  Name of the new experiment
[PATH]  An optional root path, if not provided, the current directory is used

Options:
-o, --overwrite                  Overwrite the existing experiment
-r, --register                   Register the experiment in the store [default: false]
-d, --description <DESCRIPTION>  Description of the experiment [default: A description of the experiment]

experiment run

Runs a given set of TESTS for the experiment NAME.

Usage: etna experiment run [OPTIONS]

Options:
  -n, --name <NAME>    Name of the experiment to run [default: current directory]
  -t, --tests <TESTS>  Tests to run

experiment show

Show the details of an experiment, either via NAME or by experiment hash HASH. Users cannot create multiple experiments with the same name, but experiments are uniquely identified by their hashes, which represents the current state of the experiment. When users create an experiment, every call to the etna interface saves a snapshot of the experiment, matching the experiment results with its current results.

Usage: etna experiment show [OPTIONS]

Options:
      --name <NAME>  Name
      --hash <HASH>  Hash
  -a, --show-all     Show all the experiments

Workload Commands

workload add

Add a workload to the experiment. This currently uses the workloads shipped with the binary etna distribution, may change to pull from a remote in the future for reducing coupling.

Usage: etna workload add [OPTIONS] <LANGUAGE> <WORKLOAD>

Arguments:
  <LANGUAGE>  Language of the workload [default: coq] [possible_values(coq, haskell, racket, ocaml)]
  <WORKLOAD>  Workload to be added [default: bst] [possible_values(bst, rbt, stlc, systemf, ifc)]

Options:
  -e, --experiment <EXPERIMENT>  Name of the experiment [default: current directory]

workload remove

Remove a workload from the experiment

Usage: etna workload remove [OPTIONS] <LANGUAGE> <WORKLOAD>

Arguments:
  <LANGUAGE>  Language of the workload [default: coq] [possible_values(coq, haskell, racket, ocaml)]
  <WORKLOAD>  Workload to be added [default: bst] [possible_values(bst, rbt, stlc, systemf, ifc)]

Options:
  -e, --experiment <EXPERIMENT>  Name of the experiment [default: current directory]

workload list

List all workloads

Usage: etna workload list [OPTIONS]

Options:
  -e, --experiment <EXPERIMENT>  Name of the experiment [default: current directory]
  -l, --language <LANGUAGE>      Language of the workload [possible_values(coq, haskell, racket)] [default: all]
  -k, --kind <KIND>              Available or experiment workloads [possible_values(available, experiment)] [default: experiment]

About

ETNA CLI is a command line interface that allows you to interact with the ETNA Benchmarking and Analysis Platform. It provides a set of commands to manage your experiments, and results.

Resources

Stars

Watchers

Forks

Packages

No packages published