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>
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.
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
Metadata
Release files for newmeasure-cli 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newmeasure_cli-0.2.1.tar.gz | 11.9 kB | Without provenance | Details for newmeasure_cli-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newmeasure_cli-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for newmeasure_cli-0.2.1-py3-none-any.whl |
Total release size: 29.1 kB
Release files / newmeasure_cli-0.2.1.tar.gz
| Download URL | newmeasure_cli-0.2.1.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0e9d48558f1693e89f0cd4f1513c6a7238a27c4987fc65363637dc0fd8b51ed
|
|
BLAKE2b-256 checksum How to use checksums |
78cca16f920fd253dd2752ee39ff2094a0e181a9221a207223e2beda223fb0ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Release files / newmeasure_cli-0.2.1-py3-none-any.whl
| Download URL | newmeasure_cli-0.2.1-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47f0a124e9382c933345135e7733e49f0b4c0933c5e2b67259bb90dc37317d1c
|
|
BLAKE2b-256 checksum How to use checksums |
c82a559d71577c60b232d43fe2d42bef652bec9fce9b71562bfca97bef03b0dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Security for newmeasure-cli 0.2.1
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.