Skip to main content

Root Signals logo

Measurement & Control for LLM Automations

The roots CLI is a powerful command-line tool for interacting with the Root Signals API. It provides a convenient way to manage and execute your Judges directly from the terminal.

Installation

You can install the roots CLI using the following command, which downloads and installs the script to /usr/local/bin:

curl -sSL https://app.rootsignals.ai/cli/install.sh | sh

Alternatively, you can install and run the CLI using uvx:

uvx root-signals-cli judge list

Authentication

Before using the CLI, you must set your Root Signals API key as an environment variable:

# Sign up for a free account at https://app.rootsignals.ai/register
export ROOTSIGNALS_API_KEY="your-api-key"

Temporary API keys

If no API key is set, the CLI can create a temporary key interactively and save it to ~/.rootsignals/settings.json as temporary_api_key. Permanent keys should be set via the ROOTSIGNALS_API_KEY environment variable, which takes precedence.

Usage

The CLI is organized into a main command, roots, with subcommands for different functionalities. The primary resource you'll interact with is the judge.

Judge Management

All Judge-related commands are available under the roots judge subcommand.

list

List all available Judges, with options for filtering and pagination.

roots judge list

Options:

  • --page-size: Number of results to return per page.
  • --cursor: The pagination cursor value.
  • --search: A search term to filter by.
  • --name: Filter by exact judge name.
  • --ordering: Which field to use for ordering the results.
  • --is-preset / --not-is-preset: Filter by preset status.
  • --is-public / --not-is-public: Filter by public status.
  • --show-global / --not-show-global: Filter by global status.

get

Retrieve a specific Judge by its ID.

roots judge get <judge_id>

create

Create a new Judge.

roots judge create --name "My New Judge" --intent "To evaluate the quality of LLM responses."

Options:

  • --name: The name for the new judge (required).
  • --intent: The intent for the new judge (required).
  • --stage: The stage for the new judge.
  • --evaluator-references: JSON string for evaluator references. E.g., '[{"id": "eval-id"}]'

update

Update an existing Judge.

roots judge update <judge_id> --name "My Updated Judge Name"

Options:

  • --name: The new name for the judge.
  • --stage: The new stage for the judge.
  • --evaluator-references: JSON string to update evaluator references. Use "[]" to clear.

delete

Delete a Judge by its ID. You will be prompted for confirmation.

roots judge delete <judge_id>

duplicate

Duplicate an existing Judge.

roots judge duplicate <judge_id>

Judge Execution

execute

Execute a Judge with specific inputs.

roots judge execute <judge_id> --request "What is the capital of France?" --response "Paris"

Options:

  • --request: Request text.
  • --response: Response text to evaluate.
  • --contexts: JSON list of context strings. E.g., '["ctx1"]'
  • --functions: JSON array for the "functions" field.
  • --expected-output: Expected output text.
  • --tag: Add one or more tags.

Using stdin input:

You can pipe input directly to the --response parameter:

echo "Paris" | roots judge execute <judge_id> --request "What is the capital of France?"
cat response.txt | roots judge execute <judge_id>

execute-by-name

Execute a Judge by its name.

roots judge execute-by-name "My New Judge" --request "What is the capital of France?" --response "Paris"

Input can also be piped in similar way as with execute.

Prompt testing

Initialize a prompt testing experiment config and run it.

roots prompt-test init
roots prompt-test run

Development

This project uses uv for dependency management. To set up the development environment, run:

. .venv/bin/activate
uv pip sync pyproject.toml

Metadata

Release files for root-signals-cli 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for root-signals-cli 0.1.3
File Size Uploaded Provenance
root_signals_cli-0.1.3.tar.gz 18.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for root-signals-cli 0.1.3
File Interpreter ABI Platform
root_signals_cli-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 31.2 kB

Release files / root_signals_cli-0.1.3.tar.gz

Download URL root_signals_cli-0.1.3.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
817f909d918036366db1504d437163cf98cba7df150688db1b22fe452e32df6e
BLAKE2b-256 checksum
How to use checksums
a886b95d86805bf8b78606d7b35afd4e8a8714bfb0a74e6dd640a1521b1edde5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release files / root_signals_cli-0.1.3-py3-none-any.whl

Download URL root_signals_cli-0.1.3-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53c4409d6966979e08883cf8670cd695398e17d5a6ef3bea1cda39863f7b6c73
BLAKE2b-256 checksum
How to use checksums
9d93246bb66dbb9573fe6dc83763e38191479c5db7cbb83b6a79084675861a10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Security for root-signals-cli 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page