Skip to main content

NewMeasure CLI

Upload eval tasks, start cloud runs, and download results with newm

Install • Usage • Browser tasks • Commands • Development

newm is the customer-facing client for NewMeasure. It uploads task directories, starts runs in the cloud, shows results, and downloads stored artifacts. Requires Python 3.11 or later and a NewMeasure customer API key.

Install

uv tool install newmeasure-cli
Other install options
pipx install newmeasure-cli
# or, inside a virtual environment
pip install newmeasure-cli

Usage

Sign in with your customer API key:

newm login

The default API is https://api.newmeasure.cc. Configuration is stored in ~/.newm/config.json with owner-only permissions.

Run a task:

# Upload and run a local task directory
newm run ./my-task --no-wait

# Or run an already uploaded task, several times
newm run t_abc123 --n-trials 5 --no-wait

--no-wait returns the run ID immediately; the run continues in the cloud. Without it, the CLI waits for completion. Check status with:

newm result <run-id>

Browser tasks

Browser tasks test a web product: an AI agent uses it in a cloud browser. Put the application login in a local env file, using the field names the task declares in credential_fields:

username=YOUR_APPLICATION_EMAIL
password=YOUR_APPLICATION_PASSWORD

Keep that file out of version control, and submit it with the run:

newm run ./my-task --credentials-file credentials.env --no-wait

Only the declared fields are sent, over HTTPS (plain HTTP is allowed for localhost). Cloud and model credentials are managed by NewMeasure.

Download a trial's artifacts using the trial ID from newm result:

newm artifacts <run-id> <trial-id> --output ./artifacts/<trial-id>

Downloads include outputs/ (the files the product generated, such as PDF and HTML exports), score.json (the reward and per-check breakdown), and manifest.json. The CLI checks each file's size and SHA-256.

A browser task bundle contains task.toml, instruction.md, and, when present, scenario.yaml, product.md (or ../../shared/product.md), and the environment/ and tests/ folders.

Commands

newm login                      # store API token
newm upload ./my-task           # validate and upload a task
newm run <task-id | dir>        # run an eval
newm result <run-id>            # run details and trial results
newm artifacts <run-id> <trial-id> [--output DIR]
newm tasks                      # list uploaded tasks
newm runs [<task-id>]           # list runs
newm harbor ...                 # pass through to the Harbor CLI
newm --help

Development

From this directory:

uv sync
uv run newm --help
uv run pytest

Release files for newmeasure-cli 0.2.0

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

Source distribution (sdist)

Source distribution for newmeasure-cli 0.2.0
File Size Uploaded
newmeasure_cli-0.2.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for newmeasure-cli 0.2.0
File Interpreter ABI Platform
newmeasure_cli-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / newmeasure_cli-0.2.0.tar.gz

Download URL newmeasure_cli-0.2.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1506c71eea78dd752136d29d2847e3573e891650e7fb2cc03c2807ffd0d5fa3e
BLAKE2b-256 checksum
How to use checksums
a80cb1d101424ac0eb01c121c37276e5059616e9580be3895886c215d21b430f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / newmeasure_cli-0.2.0-py3-none-any.whl

Download URL newmeasure_cli-0.2.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c1a7eda1f6f0fa4df7484edd1ad9b481755b0ab102fe9c315b7422edc61861f
BLAKE2b-256 checksum
How to use checksums
f4ba8ff73bf65d077891b45a7f92ecb3fc781d8103f1fbac67e40ff9b0ea18a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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