Skip to main content

NewMeasure CLI

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

Install • Usage • Browser tasks • Edit 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>

Preview environments and saved logins

In the app, open Manage logins from the Run dialog to create a personal CLI token, then:

newm login --evals
newm logins
newm run t_abc123 --url https://my-branch.solstice.co --n-trials 3
newm run tasks/ --url https://my-branch.solstice.co --login "Preview team"
newm run t_abc123 --prompt-credentials --save-login "My preview"
# Add --share-login to make the saved login available to your organization.
newm run t_abc123 --from-run e_previous --login "My preview"

The personal CLI token supplements your customer API key (newm login), identifying whose saved logins to use. Tokens expire after 90 days and can be revoked from Manage logins. Omit --login to use the NewMeasure account. Saved logins are personal unless shared; newm logins shows who saved each one. Passwords are prompted privately and never accepted as command arguments.

Trials are limited to 1–5 per task in both the app and CLI. Every launch creates a separate entry on Runs. --from-run links the original and inherits its environment unless --url is set; it does not reuse the original login. Without either option the task's staging URL is used. Solstice previews must use HTTPS on a subdomain of solstice.co, without user info, query strings or fragments. The override applies only to the prepared run, never to your task files.

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.

Edit tasks

Turn a Solstice edit session into an Edit-suite task in the app. This uses the personal CLI token from newm login --evals. Pass the session's operation_id or its asset URL (https://<tenant>.solstice.co/home/assets/<operation_id>):

# List the operation's turns, with their surface, whether starting HTML is ready, and the request
newm edit-task 0b7f2a7e-1111-4222-8333-444455556666

# Create a task from turn 2 (a turn number or turn ID)
newm edit-task 0b7f2a7e-1111-4222-8333-444455556666 --turn 2

# Merge consecutive turns into one task, with your own title
newm edit-task https://acme.solstice.co/home/assets/0b7f2a7e-1111-4222-8333-444455556666 \
  -t 2 -t 3 --title "Swap headline and CTA"

The task's checks and title are drafted from the chosen turns; refine them in the app's Edits tab. Turns listed as awaiting have no starting HTML yet: the task is created, but stays awaiting_html until the HTML is imported.

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 edit-task <operation> [-t <turn> ...]  # list turns or create an edit task
newm logins                     # list saved logins
newm harbor ...                 # pass through to the Harbor CLI
newm --help

Development

From this directory:

uv sync
uv run newm --help
uv run pytest

Metadata

Release files for newmeasure-cli 0.3.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.3.0
File Size Uploaded Provenance Actions
newmeasure_cli-0.3.0.tar.gz 13.3 kB Without provenance Details for newmeasure_cli-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 32.3 kB

Release files / newmeasure_cli-0.3.0.tar.gz

Download URL newmeasure_cli-0.3.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d1772e3ec79aa1df74cd8ba60ee97d1bafe85a15aa306fa5e581c75ab1e76394
BLAKE2b-256 checksum
How to use checksums
bdc3a304fb6316b2010c54d78f0259d24cfad3612a4b039cf858f243911365b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

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

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

Security for newmeasure-cli 0.3.0

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