Manual / Guides

Install and set up

Pipewright is a command line tool, pipewright, plus a shared launcher the platform team runs once per environment. This page sets up the CLI on your machine and in CI, and connects an MLOps repository to an environment. If no environment exists yet, start with Environments and the manifest.

What you need

WhereWhat
Your machine or CI runnerPython 3.11, uv (recommended), Docker (component images are built locally at release), and the Google Cloud CLI or Application Default Credentials
Google CloudAn environment: the building blocks in Google Cloud services and its environment manifest, written by the platform’s Terraform (the open source starter, or the Enterprise blueprint)
From the platform teamYour tenant name, the manifest’s location (gs://<artifacts-bucket>/pipewright/environment.json) and what the tenant may use: see the handover

Install a release

pip install "pipewright-mlops[gcp]==1.4.5"     # the command is `pipewright`
pipewright --version

Pin the exact version everywhere, CI included. The package is named pipewright-mlops on PyPI; the command is pipewright. Extras:

ExtraAddsWho needs it
gcpThe Google Cloud client libraries and Kubeflow Pipelines SDKEveryone who talks to an environment
mcpThe MCP tool server for coding agents (1.3.0)Teams that build with an agent
onlineThe PostgreSQL driver for the Cloud SQL online store (1.4.2)Only the launcher image (the sync and the lookup service); nobody installs it by hand
launcherThe launcher’s web serverOnly the launcher image; the platform team uses the published image instead

Each release is also on GitHub with its wheel and source archive (gh release download v1.4.5 -R fluxorsoft/pipewright). The launcher image for platform teams is ghcr.io/fluxorsoft/pipewright-launcher, its digest in the release notes. Pipewright Enterprise installs as a second package that adds commands to the same pipewright CLI.

Install from source

git clone https://github.com/fluxorsoft/pipewright.git
cd pipewright
uv sync --all-extras          # a Python 3.11 virtual environment with every extra
uv run pipewright --help

To use a checkout from another environment: pip install "<path to the checkout>[gcp]".

Credentials

Pipewright acts as you: every command uses your Google identity, and everything a pipeline step does runs as your team’s runner identity, never as you and never with a key file.

SettingWhen
Application Default Credentials (gcloud auth application-default login)The default
GCLOUD_CONFIG=<configuration>Use a named gcloud configuration’s refreshable user credentials, for example when you work with several organisations
Workload Identity FederationGitHub Actions: the workflows pipewright ci init writes use it, with no keys (CI)
Behind a TLS-inspecting proxy

Corporate proxies and some antivirus products re-sign TLS traffic. Point every client at your organisation’s CA bundle: REQUESTS_CA_BUNDLE and SSL_CERT_FILE (Python), GRPC_DEFAULT_SSL_ROOTS_FILE_PATH (gRPC clients), PIPEWRIGHT_BUILD_CA_BUNDLE (copied into image builds so pip install inside Docker works) and CLOUDSDK_CORE_CUSTOM_CA_CERTS_FILE (gcloud). UV_NATIVE_TLS=1 makes uv use the system store.

Start an MLOps repository

A team keeps all its use cases in one repository. The only file Pipewright needs before the first use case is one environment file per environment, pointing at the manifest the platform published:

team-mlops/
  environments/
    dev.yaml
    prod.yaml
  usecases/                      # pipewright new-usecase creates folders here
  .pipewright-schemas/           # editor schemas, written by new-usecase and `pipewright schemas`
# environments/dev.yaml
apiVersion: pipewright/v1
kind: Environment
metadata: { name: dev }
spec:
  manifest: gs://acme-ml-dev-artifacts/pipewright/environment.json
  # promotion: { from: test }    # in a production file: the environment releases come from

An environment file may also set project, region, artifact_registry and artifacts_bucket explicitly; when a manifest is used too, they must agree with it. Without a manifest, an environment file can describe a small environment by hand, which is how the tests and some proofs of concept work.

Check the connection

pipewright new-usecase --name churn --tenant <your-tenant> --owner <your-team>
pipewright validate --env dev      # offline: schemas, references, cross-checks
pipewright doctor   --env dev      # online, read-only: the tenant's resources, permissions, the launcher

doctor never changes anything. Every failure names what is missing and who to ask: you (your configuration), or the platform team (a grant, a bucket, an API). Run it after every platform change and before your first release.

Help in the editor

Every YAML file new-usecase writes starts with # yaml-language-server: $schema=..., pointing at the schemas in .pipewright-schemas/. In VS Code with the Red Hat YAML extension, keys are suggested, explained on hover and mistakes underlined. After an upgrade, pipewright schemas refreshes the schemas and adds the line to files that lack it. Commit the folder.

pipewright explain data.split.strategy prints a key’s meaning, type, allowed values, default and whether it may vary per environment; the configuration reference lists all of them.

Upgrading

Within 1.x every change is additive and off until you turn it on: install the new version, run pipewright schemas, validate and doctor, then re-release. Upgrading lists what each version asks of you, if anything.