Manual / Reference / Commands

Command reference

Every command and flag, 92 commands, generated from Pipewright 1.4.5's own command parser, so it matches pipewright <command> --help exactly. Most commands take --env (an environment file under environments/) and --usecase; run them from the root of your MLOps repository. Commands marked Enterprise come with Pipewright Enterprise, which adds them to the same pipewright command when it is installed.

validate resolve doctor tables schedules alerts release rollback promote new-usecase schemas context mcp assist review events explain deploy-model pipelines-ui features serving report integrity lineage model data monitor decisions ab loop retrain scoring run synthetic ci test status images plugins agent-configE evidenceE fleetE platformE synthetic-releaseE synthetic-draftE

pipewright validate

validate environment and use-case config

pipewright validate [-h] [--root ROOT] --env ENV [--usecase USECASE]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat

pipewright resolve

print the effective use-case config for an environment

pipewright resolve [-h] [--root ROOT] --env ENV [--usecase USECASE]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat

pipewright doctor

read-only checks against the live environment (needs the gcp extra)

pipewright doctor [-h] [--root ROOT] --env ENV [--usecase USECASE]
                         [--no-compile] [--checks]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--no-compileskip compiling the pipeline
--checksas pull request checks (FR-131): release permissions are not required, and an identity that can change things is a warning

pipewright tables sync

create tables and apply additive changes; refuse breaking ones

pipewright tables sync [-h] [--root ROOT] --env ENV [--usecase USECASE]
                              [--dry-run]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--dry-runshow the plan without changing anything

pipewright schedules sync

create, update and delete a use case's schedules

pipewright schedules sync [-h] [--root ROOT] --env ENV
                                 [--usecase USECASE] [--dry-run]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--dry-run

pipewright alerts sync

create, update and delete alert policies and email channels

pipewright alerts sync [-h] [--root ROOT] --env ENV [--usecase USECASE]
                              [--dry-run]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--dry-run

pipewright release

tables sync, build, publish, verify, then make the release live

pipewright release [-h] [--root ROOT] --env ENV [--usecase USECASE]
                          [--component-image COMPONENT_IMAGE] [--skip-tables]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--component-image <component_image>reuse an already pushed image (repo/name@sha256:...)
--skip-tablesdo not run tables sync first

pipewright rollback

move a use case's pointer back to an earlier release

pipewright rollback [-h] [--root ROOT] --env ENV --usecase USECASE
                           [--to TO]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--to <to>release id (default: the previous one)

pipewright promote

promote a tested release (and its approved model) to the next environment

pipewright promote [-h] [--root ROOT] --from SOURCE --to TO --usecase
                          USECASE [--release RELEASE]
                          [--model-version MODEL_VERSION]
                          [--accept-template-change] [--approve]
                          [--print-source-commit]
ArgumentWhat it does
--root <root>
default .
--from <source>the environment it was tested in, e.g. test
required
--to <to>the environment to promote to, e.g. prod (its promotion.from)
required
--usecase <usecase>
required
--release <release>the source release id (default: the one live in the source)
--model-version <model_version>the source model version (default: its default, approved version)
--accept-template-changepromote even if the destination compiles the pipelines differently (recorded)
--approveapprove the model as part of the promotion (needed for a model's first version under a manual approval policy; recorded)
--print-source-commitprint the commit the source release was built from and exit (CI checks it out first)

pipewright new-usecase

start a use case from a Pipewright example

pipewright new-usecase [-h] [--root ROOT] --name NAME --tenant TENANT
                              --owner OWNER [--from FROM_EXAMPLE]
                              [--table-prefix TABLE_PREFIX]
                              [--from-bq PROJECT.DATASET.TABLE]
                              [--label LABEL]
ArgumentWhat it does
--root <root>
default .
--name <name>use case name, e.g. churn-nimbus
required
--tenant <tenant>tenant the platform team gave you
required
--owner <owner>owning team
required
--from <from_example>example to copy: churn (every option), minimal (only what is required), ray (tuning on a Ray cluster), features (features from feature tables), bqml (trained and scored in BigQuery ML) or serving (online serving choices); default churn, or minimal with --from-bq
--table-prefix <table_prefix>prefix for BigQuery tables (default: <name>_)
--from-bq <project.dataset.table>draft the data contract from this BigQuery table's schema (needs the gcp extra)
--label <label>with --from-bq: the column the model predicts (0/1 or true/false)

pipewright schemas

write editor schemas and point each YAML file at its schema

pipewright schemas [-h] [--root ROOT]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .

pipewright context build

write APP_CONTEXT.md, the playbooks and the pointer files' Pipewright block

pipewright context build [-h] [--root ROOT] --env ENV
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment the pack describes
required

pipewright context check

fail when APP_CONTEXT.md is missing or stale (for CI)

pipewright context check [-h] [--root ROOT] --env ENV
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment the pack describes
required

pipewright mcp

the MCP tool server for coding agents, over stdio (1.3.0; needs the mcp extra)

pipewright mcp [-h] [--root ROOT] --env ENV [--tenant TENANT]
                      [--agent AGENT] [--print-config] [--direct]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment the tools work against
required
--tenant <tenant>the team (default: the only tenant in the manifest)
--agent <agent>the agent's name, recorded with every call (e.g. claude-code)
--print-configprint the MCP client settings to add, and exit
--directwith --print-config and a hosted server: straight to the service with your ID token, no local proxy

pipewright assist explain

what Assist is, what it reads and never reads, the model, who pays, and the settings in play: read it before switching Assist on

pipewright assist explain [-h] [--root ROOT] [--env ENV]
                                 [--usecase USECASE]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>show the settings in play for this environment
--usecase <usecase>show whether this use case has switched Assist on

pipewright assist ask

ask an incident question, e.g. "why did last night's training fail?"

pipewright assist ask [-h] [--root ROOT] --env ENV [--usecase USECASE]
                             [--tenant TENANT] [--platform] [--json]
                             [--server SERVER] [--local]
                             question
ArgumentWhat it does
<question>the question, in quotes
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>the environment the question is about
required
--usecase <usecase>the use case the question is about
--tenant <tenant>your team, for a question about all its use cases
--platformask as the platform team, about the whole environment (what is blocked, platform causes)
--jsonthe answer and what it was based on, as JSON
--server <server>Pipewright Enterprise: the team's hosted tool server, when reached through a local proxy (http://localhost:8765); default: the manifest's address
--localanswer on this machine with your own access even where a hosted tool server exists (not counted or recorded by the platform)

pipewright assist test

replay the frozen incident cases against the model and score them against the pass mark (the release gate)

pipewright assist test [-h] [--root ROOT] --env ENV [--runs RUNS]
                              [--case CASE] [--output OUTPUT] [--scripted]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/)
default .
--env <env>the environment whose project and settings call the model
required
--runs <runs>times each case is run (default 3)
default 3
--case <case>run only this case (repeatable)
may repeat
--output <output>write the full report (JSON) here
--scriptedno model: a scripted stand-in, to check the harness itself (costs nothing)

pipewright review

the review bundle for a change: a pull request description (1.3.0)

pipewright review [-h] [--root ROOT] --env ENV [--base BASE]
                         [--output OUTPUT]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment to check the change against
required
--base <base>the revision to compare with (default: main)
default main
--output <output>write the Markdown here instead of printing it

pipewright events

every event Pipewright sends, by persona or family, with its Pub/Sub filter

pipewright events [-h] [--persona PERSONA] [--family FAMILY] [--filter]
                         [--json]
ArgumentWhat it does
--persona <persona>ml, sre, governance, product, data or finops
--family <family>run, release, model, training, data, monitoring, retrain, loop, ab_test, ...
--filterprint only the Pub/Sub subscription filter
--jsonmachine-readable

pipewright explain

what a use case key means: description, type, allowed values, default

pipewright explain [-h] [--list] [key]
ArgumentWhat it does
<key>dotted key under spec, e.g. data.split.strategy
--listlist every key

pipewright deploy-model

serve the registry's default model version on an endpoint

pipewright deploy-model [-h] [--root ROOT] --env ENV --usecase USECASE
                               [--approve] [--dry-run] [--undeploy]
                               [--keep-lookup-service]
                               [--canary | --promote | --undeploy-canary]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--approveconfirm a manual deploy approval
--dry-runshow what would be deployed
--undeployremove all models from the endpoint (stops cost); works from the live release when the use case does not validate (FR-136)
--keep-lookup-servicewith --undeploy: keep the use case's lookup service (by default the launcher removes it)
--canarygive the new version model.serving.canary_percent of traffic, keep the current one
--promotemove all traffic to the canary, remove the rest
--undeploy-canaryabandon the canary

pipewright pipelines-ui

the Kubeflow Pipelines UI of a private-gke environment, on localhost (read only, through the cluster's API as you)

pipewright pipelines-ui [-h] [--root ROOT] --env ENV [--port PORT]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--port <port>
default 8080

pipewright features register

create the feature groups and features a spec file lists; existing ones are left as they are

pipewright features register [-h] [--root ROOT] --env ENV --file FILE
                                    [--dry-run] [--json]
                                    [names ...]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--file <file>YAML: per group, table, entity, description, features
required
<names>only these groups (default: every group in the file)
may repeat
--dry-runsay what would be created; create nothing
--json

pipewright features contract

write (or --check) the use case's feature contract from its live feature sources (FR-103)

pipewright features contract [-h] [--root ROOT] --env ENV --usecase
                                    USECASE [--check] [--built-tables]
                                    [--dry-run]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--checkcompare the contract with the live sources: exit 0 same, 1 different, 2 cannot check (for CI)
--built-tableswith --check: also the SQL of the job that last wrote each table built by a query
--dry-runsay what would change; write nothing

pipewright features sync

the latest feature values per entity into the use case's online store (bigquery or cloudsql, FR-104); for the Bigtable store, starts each view's sync and waits (FR-110)

pipewright features sync [-h] [--root ROOT] [--env ENV]
                                [--manifest MANIFEST] [--request REQUEST]
                                --usecase USECASE [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>with the MLOps checkout
--manifest <manifest>the environment manifest (gs:// or a file): read the live release
--request <request>gs:// sync request the launcher wrote (the scheduled sync's job)
--usecase <usecase>
required
--json

pipewright features export

the latest feature values per entity as Parquet with a manifest, for a store the team builds (FR-104)

pipewright features export [-h] [--root ROOT] [--env ENV]
                                  [--manifest MANIFEST] [--request REQUEST]
                                  --usecase USECASE [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>with the MLOps checkout
--manifest <manifest>the environment manifest (gs:// or a file): read the live release
--request <request>gs:// sync request the launcher wrote (the scheduled sync's job)
--usecase <usecase>
required
--json

pipewright features online-setup

the Cloud SQL online store's one-time setup: the database and each tenant's grants, as the platform's admin identity (FR-104)

pipewright features online-setup [-h] --manifest MANIFEST [--dry-run]
ArgumentWhat it does
--manifest <manifest>
required
--dry-runprint the statements; run nothing

pipewright serving pools plan

what apply would do, with each pool's cost; changes nothing

pipewright serving pools plan [-h] [--root ROOT] --env ENV
                                     [--pool POOL] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--pool <pool>only this pool
--json

pipewright serving pools apply

create missing pools and resize changed ones in place (CI/CD); never deletes

pipewright serving pools apply [-h] [--root ROOT] --env ENV
                                      [--pool POOL] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--pool <pool>only this pool
--json

pipewright serving pools list

each pool and the use cases on it

pipewright serving pools list [-h] [--root ROOT] --env ENV
                                     [--pool POOL] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--pool <pool>only this pool
--json

pipewright report fleet

every use case in every environment on one HTML page (FR-86)

pipewright report fleet [-h] [--root ROOT] [--out OUT] [--mask]
ArgumentWhat it does
--root <root>
default .
--out <out>
default fleet.html
--maskreplace email addresses with ...

pipewright integrity check

every default and serving version against its approval; exit 0 unchanged, 1 changed or unapproved, 2 could not check

pipewright integrity check [-h] [--root ROOT] [--env ENV]
                                  [--manifest MANIFEST] [--usecase USECASE]
                                  [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
--manifest <manifest>gs://<artifacts>/pipewright/environment.json (no MLOps repo needed)
--usecase <usecase>
--json

pipewright integrity renew

keep the approved files of every version in use protected (the renewer's daily run)

pipewright integrity renew [-h] [--root ROOT] [--env ENV]
                                  [--manifest MANIFEST] [--dry-run] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
--manifest <manifest>gs://<artifacts>/pipewright/environment.json (no MLOps repo needed)
--dry-runlist what would be protected; change nothing
--json

pipewright lineage

a model version back to its run, release, rows and sources (FR-55)

pipewright lineage [-h] [--root ROOT] --env ENV --usecase USECASE
                          [--version VERSION] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--version <version>version id (default: the default version)
--json

pipewright model list

versions, newest first; DEFAULT is the champion

pipewright model list [-h] [--root ROOT] --env ENV --usecase USECASE
                             [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--jsonmachine-readable output (stable field names)

pipewright model predict

send instances to the use case's endpoint (Agent Platform or KServe)

pipewright model predict [-h] [--root ROOT] --env ENV --usecase USECASE
                                --instances INSTANCES
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--instances <instances>JSON list of instances, or a file with one (or {"instances": ...})
required

pipewright model endpoint

how to call the use case's endpoint: ID, predict URL, role, a sample request (read only)

pipewright model endpoint [-h] [--root ROOT] --env ENV --usecase
                                 USECASE
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required

pipewright model check

a version against today's gates, slices and fairness (read only; exit 1 when it fails)

pipewright model check [-h] [--root ROOT] --env ENV --usecase USECASE
                              --version VERSION
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--version <version>version id, e.g. 4
required

pipewright model approve

make a version the default (approvals.promote_model)

pipewright model approve [-h] [--root ROOT] --env ENV --usecase USECASE
                                --version VERSION [--approve]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--version <version>version id, e.g. 4
required
--approveconfirm a manual promotion

pipewright model restore-files

write a version's approved file generations back as the live files (1.4.1; dry run without --confirm)

pipewright model restore-files [-h] [--root ROOT] --env ENV --usecase
                                      USECASE --version VERSION [--confirm]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--version <version>
required
--confirm

pipewright model rollbacks

rollback proposals opened by serving health (1.4.3, read only)

pipewright model rollbacks [-h] [--root ROOT] --env ENV --usecase
                                  USECASE
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required

pipewright model rollback

decide a rollback proposal: --approve makes the previous version the default (model approve) and deploys it; --decline keeps the current one

pipewright model rollback [-h] [--root ROOT] --env ENV --usecase
                                 USECASE --case CASE (--approve | --decline)
                                 [--reason REASON]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--case <case>the proposal's case ID (pipewright model rollbacks)
required
--approve
--decline
--reason <reason>recorded with the decision

pipewright model retire

retire a version no longer in use: its renewal stops; --release-holds releases its temporary holds (1.4.1; dry run without --confirm)

pipewright model retire [-h] [--root ROOT] --env ENV --usecase USECASE
                               --version VERSION [--release-holds] [--confirm]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--version <version>
required
--release-holds
--confirm

pipewright data erase

delete a data subject's rows from the use case's tables (dry run first)

pipewright data erase [-h] [--root ROOT] --env ENV --usecase USECASE
                             [--key KEY] [--keys-file KEYS_FILE] [--confirm]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--key <key>value of data_protection.erasure.key_column (repeatable)
may repeat
--keys-file <keys_file>file with one key per line
--confirmdelete (without it: count only)

pipewright monitor status

recent monitoring rows and the latest PSI per feature

pipewright monitor status [-h] [--root ROOT] --env ENV --usecase
                                 USECASE [--limit LIMIT] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--limit <limit>how many recent runs (default 10)
default 10
--jsonmachine-readable output (stable field names)

pipewright decisions pending

pending decisions, with the GitHub environment that gates each (FR-56)

pipewright decisions pending [-h] [--root ROOT] --env ENV
                                    [--usecase USECASE] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>only these use cases (repeatable)
may repeat
--jsonfor the generated workflows

pipewright ab plan

units needed per arm, how long that takes and the online arm's cost; changes nothing

pipewright ab plan [-h] [--root ROOT] --env ENV --usecase USECASE
                          [--json] [--baseline BASELINE] [--sd SD]
                          [--per-day PER_DAY]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--jsonmachine-readable output
--baseline <baseline>the control's current value of the metric
--sd <sd>mean or ratio: the unit-level standard deviation
--per-day <per_day>units exposed a day (scored or calling)

pipewright ab start

approve the treatment for the test and start it (a deploy: approvals.deploy_model)

pipewright ab start [-h] [--root ROOT] --env ENV --usecase USECASE
                           [--approve]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--approveconfirm a manual approval

pipewright ab status

the test and its newest analysis

pipewright ab status [-h] [--root ROOT] --env ENV --usecase USECASE
                            [--name NAME] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--name <name>a past test (default: the running one)
--jsonmachine-readable output

pipewright ab list

this use case's tests, newest first

pipewright ab list [-h] [--root ROOT] --env ENV --usecase USECASE
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required

pipewright ab set

lower the treatment's allocation (it may only go down while a test runs)

pipewright ab set [-h] [--root ROOT] --env ENV --usecase USECASE
                         --allocation ALLOCATION --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--allocation <allocation>the treatment's share in basis points
required
--reason <reason>recorded with your name
required

pipewright ab pause

send every unit to the control, keep the test

pipewright ab pause [-h] [--root ROOT] --env ENV --usecase USECASE
                           --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--reason <reason>recorded with your name
required

pipewright ab resume

resume a paused test

pipewright ab resume [-h] [--root ROOT] --env ENV --usecase USECASE
                            --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--reason <reason>recorded with your name
required

pipewright ab stop

end the test, keep the champion, remove the treatment's serving arm

pipewright ab stop [-h] [--root ROOT] --env ENV --usecase USECASE
                          --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--reason <reason>recorded with your name
required

pipewright ab analyse

analyse now: share checks, the metric per arm, guardrails, progress

pipewright ab analyse [-h] [--root ROOT] [--env ENV] --usecase USECASE
                             [--name NAME] [--request REQUEST] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>
--usecase <usecase>
required
--name <name>a past test (default: the running one)
--request <request>gs:// analysis request the launcher wrote (the tenant's scheduled job; no checkout needed)
--jsonmachine-readable output

pipewright ab decide

an approver group's decision on the winner (sent over the group's topic)

pipewright ab decide [-h] [--root ROOT] --env ENV --usecase USECASE
                            --reason REASON --winner {treatment,control}
                            [--group GROUP]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--reason <reason>recorded with your name
required
--winner <winner>
required · one of treatment, control
--group <group>the approver group you act for (default: the first you belong to)

pipewright ab conclude

end the test with its winner; the treatment winning becomes the default

pipewright ab conclude [-h] [--root ROOT] --env ENV --usecase USECASE
                              [--approve] --reason REASON
                              [--winner {treatment,control}]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--approveconfirm a manual approval
--reason <reason>recorded with your name
required
--winner <winner>
one of treatment, control

pipewright loop start

train in test the approved production case (production never trains)

pipewright loop start [-h] [--root ROOT] --env ENV --usecase USECASE
                             --case CASE [--source-uri SOURCE_URI]
ArgumentWhat it does
--root <root>
default .
--env <env>the production environment (the case's)
required
--usecase <usecase>
required
--case <case>the production case ID
required
--source-uri <source_uri>the data to train on (default: the case's)

pipewright loop advance

take the next step when the current one is done

pipewright loop advance [-h] [--root ROOT] --env ENV --usecase USECASE
                               --case CASE [--approve] [--steps STEPS]
                               [--accept-template-change]
ArgumentWhat it does
--root <root>
default .
--env <env>the production environment (the case's)
required
--usecase <usecase>
required
--case <case>the production case ID
required
--approvethe production approval: promote the validated candidate and make it the default
--steps <steps>steps to take at most (default 1)
default 1
--accept-template-changewith --approve: promote although production's overrides change a pipeline's shape (the differences are listed; the acceptance is recorded), as with promote

pipewright loop show

the loop as one record

pipewright loop show [-h] [--root ROOT] --env ENV --usecase USECASE
                            --case CASE
ArgumentWhat it does
--root <root>
default .
--env <env>the production environment (the case's)
required
--usecase <usecase>
required
--case <case>the production case ID
required

pipewright loop rollback

make production's earlier default the default again

pipewright loop rollback [-h] [--root ROOT] --env ENV --usecase USECASE
                                --case CASE --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>the production environment (the case's)
required
--usecase <usecase>
required
--case <case>the production case ID
required
--reason <reason>recorded with your name
required

pipewright loop pause

pause automatic retraining of a use case (safeguards; recorded)

pipewright loop pause [-h] [--root ROOT] --env ENV --usecase USECASE
                             --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>the production environment
required
--usecase <usecase>
required
--reason <reason>recorded with your name
required

pipewright loop resume

resume automatic retraining (after a pause, or the safeguards' circuit breaker)

pipewright loop resume [-h] [--root ROOT] --env ENV --usecase USECASE
                              --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>the production environment
required
--usecase <usecase>
required
--reason <reason>recorded with your name
required

pipewright retrain list

cases, newest first

pipewright retrain list [-h] [--root ROOT] [--env ENV]
                               [--manifest MANIFEST] --usecase USECASE
                               [--case CASE] [--limit LIMIT] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--case <case>case ID (default: the open case)
--limit <limit>
default 20
--jsonmachine-readable output (stable field names)

pipewright retrain show

the decision pack: is it real, is it the data, what would retraining use

pipewright retrain show [-h] [--root ROOT] [--env ENV]
                               [--manifest MANIFEST] --usecase USECASE
                               [--case CASE] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--case <case>case ID (default: the open case)
--jsonthe case as stored

pipewright retrain approve

approve retraining (one approval per required approver group)

pipewright retrain approve [-h] [--root ROOT] [--env ENV]
                                  [--manifest MANIFEST] --usecase USECASE
                                  [--case CASE] --reason REASON
                                  [--group GROUP] [--no-wait]
                                  [--source-uri SOURCE_URI]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--case <case>case ID (default: the open case)
--reason <reason>recorded with your name
required
--group <group>the approver group you act for (default: the first you belong to)
--no-waitdo not wait for the launcher to record it
--source-uri <source_uri>training data to use (default: retraining.source_uri; a retry: the failed attempt's)

pipewright retrain decline

decline: no retrain now; the case re-opens when the decline expires or things get worse

pipewright retrain decline [-h] [--root ROOT] [--env ENV]
                                  [--manifest MANIFEST] --usecase USECASE
                                  [--case CASE] --reason REASON
                                  [--group GROUP] [--no-wait] --because
                                  {data-problem,seasonal,no-harm,other}
                                  [--days DAYS]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--case <case>case ID (default: the open case)
--reason <reason>recorded with your name
required
--group <group>the approver group you act for (default: the first you belong to)
--no-waitdo not wait for the launcher to record it
--because <because>
required · one of data-problem, seasonal, no-harm, other
--days <days>until it re-opens (default: snooze.max_days)

pipewright retrain snooze

put off the decision for --days; re-opens early if things get worse

pipewright retrain snooze [-h] [--root ROOT] [--env ENV]
                                 [--manifest MANIFEST] --usecase USECASE
                                 [--case CASE] --reason REASON [--group GROUP]
                                 [--no-wait] --because
                                 {data-problem,seasonal,no-harm,other} --days
                                 DAYS
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--case <case>case ID (default: the open case)
--reason <reason>recorded with your name
required
--group <group>the approver group you act for (default: the first you belong to)
--no-waitdo not wait for the launcher to record it
--because <because>
required · one of data-problem, seasonal, no-harm, other
--days <days>until it re-opens
required

pipewright retrain retry

resubmit an approved case's failed training, under its approval

pipewright retrain retry [-h] [--root ROOT] [--env ENV]
                                [--manifest MANIFEST] --usecase USECASE
                                [--case CASE] --reason REASON [--group GROUP]
                                [--no-wait] [--source-uri SOURCE_URI]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--case <case>case ID (default: the open case)
--reason <reason>recorded with your name
required
--group <group>the approver group you act for (default: the first you belong to)
--no-waitdo not wait for the launcher to record it
--source-uri <source_uri>training data to use (default: retraining.source_uri; a retry: the failed attempt's)

pipewright scoring list

held, approved, rejected and expired scoring runs, newest first

pipewright scoring list [-h] [--root ROOT] [--env ENV]
                               [--manifest MANIFEST] --usecase USECASE
                               [--limit LIMIT] [--json]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--limit <limit>
default 20
--jsonthe records as stored, with their state now

pipewright scoring approve

approve a held scoring run: the launcher submits it as it was asked for

pipewright scoring approve [-h] [--root ROOT] [--env ENV]
                                  [--manifest MANIFEST] --usecase USECASE
                                  --hold HOLD [--reason REASON]
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--hold <hold>the held run's ID (pipewright scoring list)
required
--reason <reason>recorded with your name

pipewright scoring reject

reject a held scoring run: it never starts

pipewright scoring reject [-h] [--root ROOT] [--env ENV]
                                 [--manifest MANIFEST] --usecase USECASE
                                 --hold HOLD --reason REASON
ArgumentWhat it does
--root <root>
default .
--env <env>environment (with the MLOps repo)
--manifest <manifest>or the environment manifest, gs://... (approvers without the repo)
--usecase <usecase>
required
--hold <hold>the held run's ID (pipewright scoring list)
required
--reason <reason>recorded with your name
required

pipewright run

start a pipeline through the launcher (file-free: give a gs:// source)

pipewright run [-h] [--root ROOT] --env ENV --usecase USECASE
                      [--pipeline PIPELINE] [--source-uri SOURCE_URI]
                      [--schedule SCHEDULE] [--replay RUN_ID]
                      [--run-key RUN_KEY]
                      [--champion-version CHAMPION_VERSION]
                      [--model-version MODEL_VERSION] [--print-launcher-url]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--pipeline <pipeline>training (default), inference or synthetic
--source-uri <source_uri>gs:// path of the data
--schedule <schedule>run one of the use case's schedules now
--replay <run_id>train on exactly the rows an earlier run read (its snapshot in data.snapshot_table)
--run-key <run_key>idempotency key: the same key never starts a second run
--champion-version <champion_version>training: compare with this model version instead of the default (the pipeline must declare champion_version)
--model-version <model_version>inference: score with this model version instead of the default (the pipeline must declare model_version)
--print-launcher-urlprint the launcher URL and exit

pipewright synthetic generate

rows from the data contract and rules alone (no real data, no ML)

pipewright synthetic generate [-h] [--root ROOT] --env ENV --usecase
                                     USECASE --out OUT [--rows ROWS]
                                     [--seed SEED]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--out <out>a .csv or .parquet file
required
--rows <rows>default: synthetic.rows, else data.contract.min_rows
--seed <seed>default: synthetic.seed, else training.seed

pipewright synthetic gates

the gates a synthetic release must pass, with their defaults

pipewright synthetic gates [-h] [--root ROOT] --env ENV --usecase
                                  USECASE
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required

pipewright ci init

write GitHub Actions workflows that run Pipewright end to end

pipewright ci init [-h] [--root ROOT] --environments ENVIRONMENTS
                          [--force] [--runs-on RUNS_ON]
                          [--decisions-cron DECISIONS_CRON]
                          [--checks-environment NAME]
ArgumentWhat it does
--root <root>
default .
--environments <environments>promotion order, comma separated, e.g. dev,prod
required
--forcereplace existing workflow files
--runs-on <runs_on>self-hosted runner labels, comma separated (default: ubuntu-latest)
--decisions-cron <decisions_cron>when pipewright-decisions runs, five cron fields in UTC (default: hourly, 07:17 to 18:17, Monday to Friday; '*/15 * * * *' was 1.1's)
--checks-environment <name>the GitHub environment pull request checks run under (default: the first environment). Give it the first environment's variables and no reviewers, so checks start at once

pipewright test

run each use case's tests.command

pipewright test [-h] [--root ROOT] --env ENV [--usecase USECASE]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat

pipewright status

which release is live per use case

pipewright status [-h] [--root ROOT] --env ENV [--usecase USECASE]
                         [--json]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--jsonmachine-readable output (stable field names)

pipewright images prune

delete images no release needs (dry run unless --apply)

pipewright images prune [-h] [--root ROOT] --env ENV [--keep KEEP]
                               [--apply]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--keep <keep>also keep the newest N images of each package (default 3)
default 3
--applydelete; without it, only list what would go

pipewright plugins

list installed command plugins

pipewright plugins [-h]

pipewright agent-config check Enterprise

check an agent's committed configuration against the platform's rules

pipewright agent-config check [-h] [--root ROOT] --env ENV --agent
                                     AGENT [--tenant TENANT]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--agent <agent>claude-code or gemini-cli
required
--tenant <tenant>the team (for the hosted server's settings)

pipewright agent-config write Enterprise

write the certified configuration for an agent (keeps other settings)

pipewright agent-config write [-h] [--root ROOT] --env ENV --agent
                                     AGENT [--tenant TENANT] [--direct]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--agent <agent>claude-code or gemini-cli
required
--tenant <tenant>the team (for the hosted server's settings)
--directreach the hosted server at its own address with the person's ID token, not through a local proxy

pipewright evidence build Enterprise

collect the evidence for one model version and write a pack

pipewright evidence build [-h] [--root ROOT] --env ENV
                                 [--usecase USECASE] [--version VERSION]
                                 [--out OUT] [--upload UPLOAD] [--no-upload]
                                 [--dataset DATASET]
ArgumentWhat it does
--root <root>MLOps repo root (contains environments/ and usecases/)
default .
--env <env>environment name, e.g. dev or prod
required
--usecase <usecase>use case name (repeatable); default: all
may repeat
--version <version>model version (default: the default version)
--out <out>folder for packs (default: ./evidence)
default evidence
--upload <upload>store the pack in gs://bucket/prefix/ (default: the manifest's evidence_uri)
--no-uploadonly write the pack locally
--dataset <dataset>evidence dataset (default: the manifest's, else pipewright_evidence)

pipewright evidence verify Enterprise

check a pack's files against its hashes

pipewright evidence verify [-h] directory
ArgumentWhat it does
<directory>

pipewright fleet collect Enterprise

read each environment and store a snapshot

pipewright fleet collect [-h] [--config CONFIG] [--env ENV]
ArgumentWhat it does
--config <config>fleet.yaml
default fleet.yaml
--env <env>only this environment (repeatable)
may repeat

pipewright fleet serve Enterprise

run the UI from the stored snapshots

pipewright fleet serve [-h] [--config CONFIG] [--host HOST]
                              [--port PORT]
ArgumentWhat it does
--config <config>fleet.yaml
default fleet.yaml
--host <host>
default 127.0.0.1
--port <port>
default 8080

pipewright platform context build Enterprise

write PLATFORM_CONTEXT.md, the platform playbooks and the pointer blocks

pipewright platform context build [-h] --config CONFIG [--root ROOT]
ArgumentWhat it does
--config <config>the platform file
required
--root <root>the platform repository (default: here)
default .

pipewright platform context check Enterprise

fail when PLATFORM_CONTEXT.md is missing or stale

pipewright platform context check [-h] --config CONFIG [--root ROOT]
ArgumentWhat it does
--config <config>the platform file
required
--root <root>the platform repository (default: here)
default .

pipewright platform explain-plan Enterprise

what a Terraform plan changes, and what a reviewer must not miss

pipewright platform explain-plan [-h] [--json] plan
ArgumentWhat it does
<plan>terraform show -json output
--json

pipewright platform guardrails Enterprise

perimeter rules proposed from VPC Service Controls dry-run violations

pipewright platform guardrails [-h] --config CONFIG
                                      (--project PROJECT | --entries ENTRIES)
                                      [--days DAYS]
ArgumentWhat it does
--config <config>the platform file (callers it does not name are not proposed)
required
--project <project>read the violations from this project's Cloud Logging
--entries <entries>a JSON file of log entries (a list, or {entries: [...]})
--days <days>
default 7

pipewright synthetic-release Enterprise

release a gated synthetic run into another environment (enterprise)

pipewright synthetic-release [-h] [--root ROOT] --from SRC --to DST
                                    --usecase USECASE [--run RUN] [--dry-run]
ArgumentWhat it does
--root <root>
default .
--from <src>the environment that made the data
required
--to <dst>the environment that receives it
required
--usecase <usecase>
required
--run <run>the run to release (default: the latest published one)
--dry-runcheck gates, approvals and rows; copy nothing

pipewright synthetic-draft Enterprise

draft the synthetic section from a table's profile with Gemini, for review (enterprise)

pipewright synthetic-draft [-h] [--root ROOT] --env ENV --usecase
                                  USECASE [--table TABLE] [--model MODEL]
                                  [--out OUT] [--no-ranges] [--force]
ArgumentWhat it does
--root <root>
default .
--env <env>
required
--usecase <usecase>
required
--table <table>bq:// table to profile (default: synthetic.source_uri)
--model <model>Gemini model on Vertex AI (default gemini-2.5-flash)
--out <out>where to write the draft (default config/synthetic.draft.yaml)
--no-rangesleave date ranges out of the profile sent to Gemini
--forcereplace an earlier draft