Schema introspection
Every command below with arguments supports two read-only flags for tooling and AI agents:--show-file-schema: print the JSON Schema for the full request object (the format--filenameaccepts).--show-argument-schema <flag-name>: print the JSON Schema for one argument’s value. Pass the kebab flag name without the leading--(e.g.metric-id, not--metric-id).
list
List versions for a metric
Retrieve all snapshot versions of the metric’s definition, ordered oldest-first. Returns the full version history unpaginated.
Usage
Options
| Flag | Type | Required | Description |
|---|---|---|---|
--metric-id | string | yes | The unique identifier of the metric whose versions are being listed |
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
create
Create a new metric version
Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.
Usage
Options
| Flag | Type | Required | Description |
|---|---|---|---|
--content | json | yes | Metric definition snapshot accepted by POST /v1/metrics//versions. Six fields are optional and fall back to server-side defaults when omitted: - description → "" - return_type → "float" - enabled_in_prod → true for HUMAN metrics, false otherwise - needs_ground_truth → false - sampling_percentage → 10 - filters → { "filterArray": [] } |
--message | string | yes | message |
--metric-id | string | yes | The unique identifier of the metric to version |
--deploy-immediately / --no-deploy-immediately | boolean | no | deploy_immediately |
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
deploy
Deploy a specific metric version
Mark the named version as the live version for the metric, unmarking any previously deployed version.
Usage
Options
| Flag | Type | Required | Description |
|---|---|---|---|
--metric-id | string | yes | The unique identifier of the metric |
--version-name | string | yes | The name of the version to deploy |
--show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.
