Command line¶
Where each command is explained¶
The generated reference at the end of this page lists every flag. These pages explain what the commands are for. A test keeps this table in step with the commands.
| Command | Explained in |
|---|---|
pipeloom init |
pipeloom init, Quickstart |
pipeloom demo |
pipeloom demo, Quickstart |
pipeloom new |
pipeloom new model |
pipeloom new model |
pipeloom new model, Quickstart |
pipeloom validate |
Inspecting a project, Quickstart |
pipeloom compile |
Inspecting a project, Selection by state |
pipeloom ls |
Inspecting a project |
pipeloom plan |
Reviewing a change |
pipeloom graph |
Inspecting a project, Orchestrator protocol |
pipeloom run |
Running a pipeline |
pipeloom retry |
Retrying a run |
pipeloom test |
Testing models |
pipeloom build |
Testing models |
pipeloom backfill |
Backfilling a range, Migrating within 1.x |
pipeloom runs |
Run history |
pipeloom runs ls |
Run history |
pipeloom runs show |
Run history |
pipeloom finalize |
Closing the run, Orchestrator protocol |
pipeloom docs |
Docs site |
pipeloom docs generate |
Docs site |
pipeloom docs serve |
Docs site |
pipeloom schema |
JSON Schema |
pipeloom schema export |
JSON Schema |
pipeloom explain |
Running a pipeline |
pipeloom plugins |
Inspecting a project |
pipeloom plugins list |
Inspecting a project |
pipeloom diff |
Table diff |
pipeloom databricks |
Databricks plugin, Databricks commands |
pipeloom databricks bundle |
Bundle and direct deploy |
pipeloom databricks deploy |
Bundle and direct deploy |
pipeloom databricks run |
Run |
pipeloom databricks repair |
Repair |
pipeloom init¶
pipeloom init [DIRECTORY] creates a project, like dbt init. DIRECTORY defaults to a new
folder named after the project in the current directory.
- When stdin is a terminal it asks for what the flags leave out: the project name (default: the
directory name), the engine (
polars,pandas,spark,databricksorduckdb, defaultpolars; the default stays polars) and, on databricks, the Unity Catalog catalog (defaultmain). Otherwise, or with--no-input, it uses the flags and those defaults. - Each layer folder,
models/bronze,models/silverandmodels/gold, gets one.pyfile with a decorated model. polars, spark and databricks models returnctx.sql(...); pandas models are frame code, since pandas runs SQL only with the optional DuckDB extra.pipeloom.ymlholds the source grouprawand amodels:tree that sets each layer's schema and tags;models/silver/_properties.ymlholds a description..vscode/settings.jsonmapsproject.jsontopipeloom.ymlandproperties.jsontomodels/**/*.yml. polars, pandas and spark read a small CSV indata/, sopipeloom runworks right away on polars and pandas. databricks readssamples.tpch.ordersand comes with a state table, an artifacts volume and a serverlessdeployblock; the comments inpipeloom.ymlsay what to create beforepipeloom databricks deploy. - A directory that is not empty needs
--force. Existing files are never overwritten: they are kept and listed as skipped. A directory that already holdspipeloom.ymlis refused. - It also writes
AGENTS.mdand three skills under.agents/skills/, generated from the code (the command list and the diagnostic catalog); see Working with coding agents.--update-agentsrewrites just those files in the project at DIRECTORY (default: the current directory) and takes no other option except--log-format. - Exit codes: 0 on success, 2 on a usage error (bad name or engine,
--catalogwithout databricks, an existing project, a non-empty directory without--force).
pipeloom demo¶
pipeloom demo [DIRECTORY] is the quickest way to see pipeloom work. It writes the init
project for the duckdb engine into DIRECTORY (default pipeloom_demo in the current directory),
runs pipeloom build on it (a unit test, three models and their data tests), writes the docs
site and prints where it is and what to try next.
- It needs the DuckDB engine (
pip install "pipeloom[duckdb]"). Without it the command stops with PLU004 and the install command as the hint. It never falls back to another engine, so the demo is the same on every machine. - DIRECTORY must be missing or empty. The site is
DIRECTORY/target/docs/index.html. - Exit codes: 0 on success, 1 when the engine is missing or the build fails, 2 for a directory that is not empty.
pipeloom new model¶
pipeloom new model NAME adds one model file to a project and prints its path.
- The file is
models/<folder>/<NAME>.py, with one functionNAMEdecorated with@model.--folderis relative to the first model path and cannot leave it. --sqlwrites a body that returnsctx.sql("select 1 as id").--pythonwrites a frame stub that raisesNotImplementedErroruntil you write the body. Without a flag, pandas default targets get--pythonand the rest--sql. Add one parameter per input, named like the model or source table it reads.- Exit codes: 0 on success, 1 when the project does not load, 2 on a usage error (bad name, a
Python keyword or
ctx,modelorModelContextas the name, a model or file that exists,--sqlwith--python, a folder outside the model path, a file outside everypython_pathsroot, or a name that is already a folder where the file would go, such asbronzein aninitproject).
Machine-readable output¶
Every command takes --log-format json (or PIPELOOM_LOG_FORMAT=json): stderr then carries one
pipeloom.event/1 object per line. A diagnostic event has an optional explain_url, the link to
the code's entry on the error-code page. pipeloom compile --output json prints a
pipeloom.compile_result/1 object (manifest path and hash, plan counts) instead of the bare path.
pipeloom plan --diff --output json prints a pipeloom.plan_diff/1 object (the change category
of each changed model).
pipeloom init writes AGENTS.md and skills under .agents/skills/, and
pipeloom init --update-agents [DIRECTORY] regenerates only those files in an existing project.
Reference¶
pipeloom¶
pipeloom: engine-agnostic data pipelines, with models written as Python functions.
Usage:
Options:
pipeloom backfill¶
Run the selected interval models over [--start, --end).
Each model runs the windows of its own grain that overlap the range, clipped to its begin and to the run's start, through the same path as run: one token per window, and the ledger records each window it writes. Rerunning the same backfill runs only what is missing. Models without incremental.interval run as in run when selected (with + for descendants); a selection with no interval model is PLX132. Takes the run flags except --full-refresh, --manifest, --state and --defer. Exit codes: 0 ok, 1 a window or a unit failed, 2 bad usage, 130 stopped.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default:
.]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model,
model+N. Space unions, comma intersects.
Repeatable, all are unioned.
--exclude SELECTOR Remove the models this selector matches from
the selection. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--run-id TEXT Name of the run. Reusing it continues that
run. Default: a timestamp and a suffix.
--run-started-at ISO8601 Start time of the run, with a UTC offset (for
example the start of the orchestrator job).
Engines use it to make writes idempotent.
Needs --run-id. A reused run id keeps the
start it recorded.
--orchestrator-id KEY=VALUE An id the orchestrator gave this run, such as
job_run_id=42. It goes into the attempt files,
the run results and the context of every
event. Repeatable; a later duplicate wins.
Key: [a-z][a-z0-9_]{0,63}; value: 1 to 256
printable characters.
--fail-fast After the first failure, start no more units.
--no-lock Do not take the run lock.
--workers INTEGER RANGE Units to run at once. Default: the target's
setting, else min(4, CPUs). [x>=1]
--boundary [process|task] process runs units on threads here; task runs
each in its own process. Default: the target's
boundary.
--warn-error Exit 1 on warnings too.
--cancel-grace DURATION After a stop request (Ctrl+C, SIGTERM) or a
timeout, how long running units may finish
before they are killed, as 30s, 2m or 30.
Default: the setting, else 30s.
--start ISO First moment of the range, inclusive: an ISO
date or date-time; naive is UTC. Rounds down
to the start of its window. [required]
--end ISO End of the range, exclusive. Rounds up to the
end of its window. [required]
--rerun [missing|all] missing runs the windows the ledger does not
hold; all restates the range: it removes the
range from the ledger first, then runs every
window. [default: missing]
--on-failure [stop|continue] stop ends a model at its first failing window;
continue runs the rest and reports every
failed window. [default: stop]
--mark-done Record the range in the ledger exactly as
given and run nothing, for a model converted
from a watermark. Safe to repeat.
--help Show this message and exit.
pipeloom build¶
Run the unit tests of the selected models, then run them with data tests.
Any failed unit test stops the build with exit 1 before a run id exists and before any write. Each model's data tests then run after its write; a failed one (PLQ303) fails the unit, skips its descendants and leaves the data written. Takes the flags of run. Exit codes: 0 ok, 1 a unit test, a unit or a check failed, 2 bad usage, 130 stopped.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default:
.]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model,
model+N. Space unions, comma intersects.
Repeatable, all are unioned.
--exclude SELECTOR Remove the models this selector matches from
the selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state:
and result: selectors. Relative to the project
dir unless absolute. `compile --stable` or the
artifacts root (target) both work.
--defer Read the parents this run does not select from
the relations of the --state manifest instead
of this target's, so a dev run of one model
reads the production tables. Needs --state.
Refused for unit invocations and the task
boundary (PLX111).
--log-format [text|json] Diagnostics and events on stderr: readable text
or one JSON object per line. [default: text]
--manifest FILE Run the plan of this manifest instead of
compiling the project.
--expect-plan-hash HEX Stop with PLX103 unless the plan hash is this
sha256.
--run-id TEXT Name of the run. Reusing it continues that run.
Default: a timestamp and a suffix.
--full-refresh BOOLEAN Rebuild append tables from scratch. Takes an
optional true or false. [default: False]
--run-started-at ISO8601 Start time of the run, with a UTC offset (for
example the start of the orchestrator job).
Engines use it to make writes idempotent. Needs
--run-id. A reused run id keeps the start it
recorded.
--orchestrator-id KEY=VALUE An id the orchestrator gave this run, such as
job_run_id=42. It goes into the attempt files,
the run results and the context of every event.
Repeatable; a later duplicate wins. Key:
[a-z][a-z0-9_]{0,63}; value: 1 to 256 printable
characters.
--fail-fast After the first failure, start no more units.
--no-lock Do not take the run lock.
--workers INTEGER RANGE Units to run at once. Default: the target's
setting, else min(4, CPUs). [x>=1]
--boundary [process|task] process runs units on threads here; task runs
each in its own process. Default: the target's
boundary.
--warn-error Exit 1 on warnings too.
--cancel-grace DURATION After a stop request (Ctrl+C, SIGTERM) or a
timeout, how long running units may finish
before they are killed, as 30s, 2m or 30.
Default: the setting, else 30s.
--help Show this message and exit.
pipeloom compile-¶
Validate the project and write the plan to a manifest file.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model, model+N.
Space unions, comma intersects. Repeatable, all
are unioned.
--exclude SELECTOR Remove the models this selector matches from the
selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state: and
result: selectors. Relative to the project dir
unless absolute. `compile --stable` or the
artifacts root (target) both work.
--log-format [text|json] Diagnostics and events on stderr: readable text
or one JSON object per line. [default: text]
--boundary [process|task] Where units run; default is the target's boundary
(process).
--out PATH Manifest file, relative to the project dir unless
absolute. [default: target/manifest.json]
--stable Blank generated_at, invocation_id and the
selection so the same project and target always
give the same bytes. `run --manifest` then runs
every model unless --select or --exclude is
given.
--output [text|json] stdout: the manifest path, or a
pipeloom.compile_result/1 JSON object with the
path, the manifest hash and the plan counts.
[default: text]
--warn-error Exit 1 on warnings too.
--help Show this message and exit.
pipeloom demo¶
Create a sample project on DuckDB in DIRECTORY, build it and write its docs site.
DIRECTORY defaults to a new folder named pipeloom_demo and must be empty or missing (exit 2 otherwise). Needs the DuckDB engine: pip install "pipeloom[duckdb]"; without it the command stops with PLU004 (exit 1). It never falls back to another engine.
Usage:
Options:
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--help Show this message and exit.
pipeloom diff¶
Compare MODEL's relation in the --state reference with its relation on this target.
Rows are matched by key and compared column by column, nulls equal to nulls. Without --samples the output holds counts and the schema diff, never a cell value. Exit codes: 0 no differences, 1 differences or a failure, 2 usage error.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--state DIR Folder of the reference manifest.json, whose
relation of MODEL is the source side. Relative to
the project dir unless absolute. [required]
--key COLUMN Key column; repeatable. Default: the model's
write.unique_key.
--samples Add up to 10 rows per kind of difference. Columns
tagged sensitive are masked.
--output [markdown|json] Markdown for a pull request comment, or the
pipeloom.table_diff/1 document. [default:
markdown]
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--help Show this message and exit.
pipeloom docs¶
Build and serve the docs site (one HTML file, read only).
Usage:
Options:
pipeloom docs generate¶
Write index.html: the graph, every model and source, and the last run's results.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--out PATH Output folder, relative to the project dir unless
absolute. Default: target/docs.
--manifest FILE Render this manifest instead of compiling the
project.
--run-results FILE A run_results.json to show. Default: the one at
the root of the artifacts root, when it exists
(never with --manifest).
--help Show this message and exit.
pipeloom docs serve¶
Serve the generated site until Ctrl+C, rebuilding it when the models change. It never opens a browser.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--dir PATH Folder to serve, relative to the project dir
unless absolute. Default: target/docs.
--host TEXT Address to listen on. [default: 127.0.0.1]
--port INTEGER RANGE Port to use. [default: 8000; 0<=x<=65535]
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--help Show this message and exit.
pipeloom explain¶
Print what a diagnostic CODE means, for example PLX101 (case-insensitive).
Shows the title, layer, severity, status, the version the code appeared in, the explanation and the link to the error-code page. Reads no project.
Usage:
Options:
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--help Show this message and exit.
pipeloom finalize¶
Merge the unit results of a run into run_results.json and close the run.
Units in scope (default: the whole plan) take their attempt file, else the state given with --unit-states or --unit-states-json, else they are skipped as not_run, which does not fail the run. A unit marked excluded gets no row. Exit codes: 0 ok, 1 a unit failed, 2 bad usage, 130 cancelled. Running it again rewrites the same results.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default:
.]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model,
model+N. Space unions, comma intersects.
Repeatable, all are unioned.
--exclude SELECTOR Remove the models this selector matches from
the selection. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable text
or one JSON object per line. [default: text]
--run-id TEXT The run to close: the run id every unit
invocation used. [required]
--manifest FILE Use the plan of this manifest instead of
compiling the project.
--expect-plan-hash HEX Stop with PLX103 unless the plan hash is this
sha256.
--unit-states PATH A JSON file, schema pipeloom.unit_states/1,
with what the orchestrator knows about units
that wrote no attempt file: {unit_id: {status:
skipped|cancelled|failed|excluded, reason,
code, message, orchestrator_ids}}.
--unit-states-json TEXT The same document as --unit-states, given
inline (for an orchestrator that cannot share a
file). Not together with --unit-states.
--orchestrator-id KEY=VALUE An id the orchestrator gave this run, such as
job_run_id=42. It goes into the attempt files,
the run results and the context of every event.
Repeatable; a later duplicate wins. Key:
[a-z][a-z0-9_]{0,63}; value: 1 to 256 printable
characters.
--run-started-at ISO8601 Start time of the run, with a UTC offset. A run
that recorded its start keeps it.
--help Show this message and exit.
pipeloom graph¶
Print the graph of the selected models, in dependency order.
With --units --output json, print the selected execution units instead, for an orchestrator that runs them one by one.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml.
[default: .]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model,
model+N. Space unions, comma intersects.
Repeatable, all are unioned.
--exclude SELECTOR Remove the models this selector matches from
the selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state:
and result: selectors. Relative to the
project dir unless absolute. `compile
--stable` or the artifacts root (target)
both work.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--output [text|dot|mermaid|json]
Format of the graph: text (name <- parents),
Graphviz dot, Mermaid or JSON. --units needs
json. [default: text]
--units Print the execution units of the plan
instead of the models, with the command line
that runs each and the one that finalizes
the run (schema pipeloom.unit_graph/1).
Needs --output json.
--manifest FILE With --units: read the plan from this
manifest instead of compiling the project,
so plan_hash is the manifest's.
--help Show this message and exit.
pipeloom init¶
Create a project in DIRECTORY (default: a new folder named after the project).
When stdin is a terminal and --no-input is not given, asks for the values the flags leave out: the project name, the engine and, on databricks, the catalog. Also writes AGENTS.md and skills under .agents/skills/, generated from the code and never fetched.
Usage:
Options:
--name TEXT Project name. Default: the directory name.
--engine [polars|pandas|spark|databricks|duckdb]
Engine of the dev target. Default: polars.
--catalog TEXT Unity Catalog catalog of the dev target
(databricks only). Default: main.
--no-input Never prompt: use the flags and the
defaults.
--force Allow a directory that is not empty.
Existing files are kept, never overwritten,
and listed as skipped.
--update-agents Regenerate AGENTS.md and the skills in the
project at DIRECTORY (default: the current
directory) and change nothing else. Takes no
other option except --log-format.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--help Show this message and exit.
pipeloom ls¶
List the models that --select and --exclude choose (all by default).
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model, model+N.
Space unions, comma intersects. Repeatable, all
are unioned.
--exclude SELECTOR Remove the models this selector matches from the
selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state: and
result: selectors. Relative to the project dir
unless absolute. `compile --stable` or the
artifacts root (target) both work.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--output [text|json] One model name per line, or a JSON list.
[default: text]
--why With --state and text output, print after each
name how it differs from the reference: new, the
split checksums that changed, legacy, or
unchanged.
--help Show this message and exit.
pipeloom new¶
Add files to an existing project.
Usage:
Options:
pipeloom new model¶
Create a model named NAME: a decorated function in models/
The path written is printed.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--sql Write a body that returns ctx.sql(...) (default
unless pandas).
--python Write a frame stub (default on a pandas default
target).
--folder TEXT Folder under the first model path to put the file
in. Default: the model path itself.
--help Show this message and exit.
pipeloom plan¶
Show what a change does before it runs: with --diff, how each model differs from the --state reference (new, removed, breaking, non-breaking, metadata or indirect).
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default:
.]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model,
model+N. Space unions, comma intersects.
Repeatable, all are unioned.
--exclude SELECTOR Remove the models this selector matches from
the selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state:
and result: selectors. Relative to the
project dir unless absolute. `compile
--stable` or the artifacts root (target) both
work.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--diff Compare the project with the --state manifest
and sort each model's change into a category.
Required: it is the only mode of plan for
now.
--fail-on [breaking|any|none] Exit 1 when a change is breaking (breaking,
indirect-breaking or removed), when anything
changed, or never. [default: breaking]
--output [text|json] A table of the changed models, or a
pipeloom.plan_diff/1 JSON object. [default:
text]
--help Show this message and exit.
pipeloom plugins¶
Inspect installed plugins.
Usage:
Options:
pipeloom plugins list¶
List plugins by group and kind. Nothing is imported unless --check is given.
Usage:
Options:
--group [engines|catalogs|state_stores|sinks|secret_providers|executors|renderers|naming|commands]
Only this group.
--output [text|json] Print a table, or a JSON array with one
object per plugin. [default: text]
--check Import each plugin and report its API and
status.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--help Show this message and exit.
pipeloom retry¶
Run again what a finished run did not finish. Exit codes as run; 1 also for PLX113.
Selects the units of run RUN_ID that failed, timed out, were skipped or were cancelled, and
runs them in a new run that records RUN_ID as its parent. The project is compiled again, so
a fixed model is picked up. The retry inherits the vars (--vars wins), --full-refresh,
--state and --defer of the run it retries.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml.
[default: .]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--from RUN_ID The finished run to retry: its failed,
skipped and cancelled units run again.
[required]
--run-id TEXT Name of the new run; it must differ from
--from. Default: a timestamp and a suffix.
--full-refresh / --no-full-refresh
Rebuild append tables from scratch. Default:
what the retried run did.
--orchestrator-id KEY=VALUE An id the orchestrator gave this run, such
as job_run_id=42. It goes into the attempt
files, the run results and the context of
every event. Repeatable; a later duplicate
wins. Key: [a-z][a-z0-9_]{0,63}; value: 1 to
256 printable characters.
--fail-fast After the first failure, start no more
units.
--no-lock Do not take the run lock.
--workers INTEGER RANGE Units to run at once. Default: the target's
setting, else min(4, CPUs). [x>=1]
--boundary [process|task] process runs units on threads here; task
runs each in its own process. Default: the
target's boundary.
--warn-error Exit 1 on warnings too.
--cancel-grace DURATION After a stop request (Ctrl+C, SIGTERM) or a
timeout, how long running units may finish
before they are killed, as 30s, 2m or 30.
Default: the setting, else 30s.
--help Show this message and exit.
pipeloom run¶
Run the selected models. Exit codes: 0 ok, 1 a unit or a check failed, 2 bad usage, 130 stopped.
The first Ctrl+C or SIGTERM stops starting units and gives running ones --cancel-grace
to finish; a second one kills them at once; a third raises KeyboardInterrupt.
-s unit:NAME runs one unit without a lock or run results, and never retries it; the
process executor uses it.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default:
.]
--vars TEXT Variables as a YAML or JSON mapping; they
override the vars block.
--target TEXT Target to bind; default_target or the only
target when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model,
model+N. Space unions, comma intersects.
Repeatable, all are unioned.
--exclude SELECTOR Remove the models this selector matches from
the selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state:
and result: selectors. Relative to the project
dir unless absolute. `compile --stable` or the
artifacts root (target) both work.
--defer Read the parents this run does not select from
the relations of the --state manifest instead
of this target's, so a dev run of one model
reads the production tables. Needs --state.
Refused for unit invocations and the task
boundary (PLX111).
--log-format [text|json] Diagnostics and events on stderr: readable text
or one JSON object per line. [default: text]
--manifest FILE Run the plan of this manifest instead of
compiling the project.
--expect-plan-hash HEX Stop with PLX103 unless the plan hash is this
sha256.
--run-id TEXT Name of the run. Reusing it continues that run.
Default: a timestamp and a suffix.
--full-refresh BOOLEAN Rebuild append tables from scratch. Takes an
optional true or false. [default: False]
--run-started-at ISO8601 Start time of the run, with a UTC offset (for
example the start of the orchestrator job).
Engines use it to make writes idempotent. Needs
--run-id. A reused run id keeps the start it
recorded.
--orchestrator-id KEY=VALUE An id the orchestrator gave this run, such as
job_run_id=42. It goes into the attempt files,
the run results and the context of every event.
Repeatable; a later duplicate wins. Key:
[a-z][a-z0-9_]{0,63}; value: 1 to 256 printable
characters.
--fail-fast After the first failure, start no more units.
--no-lock Do not take the run lock.
--workers INTEGER RANGE Units to run at once. Default: the target's
setting, else min(4, CPUs). [x>=1]
--boundary [process|task] process runs units on threads here; task runs
each in its own process. Default: the target's
boundary.
--warn-error Exit 1 on warnings too.
--cancel-grace DURATION After a stop request (Ctrl+C, SIGTERM) or a
timeout, how long running units may finish
before they are killed, as 30s, 2m or 30.
Default: the setting, else 30s.
--help Show this message and exit.
pipeloom runs¶
List past runs and show one run (read only).
Usage:
Options:
pipeloom runs ls¶
List the last runs of the target, newest first. Exit 1 for PLX117 and PLX118.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--artifacts Read runs/*/run_results.json under the artifacts
root instead of the state store.
--output [text|json] Tab-separated lines, or JSON. [default: text]
--limit INTEGER RANGE Runs to list, newest first. [default: 20; x>=1]
--before RUN_ID List the runs older than this one: the next page
after the last run shown.
--help Show this message and exit.
pipeloom runs show¶
Show one run and its unit attempts. Exit 1 for PLX118.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--artifacts Read runs/*/run_results.json under the artifacts
root instead of the state store.
--output [text|json] Tab-separated lines, or JSON. [default: text]
--help Show this message and exit.
pipeloom schema¶
JSON Schemas for the YAML files.
Usage:
Options:
pipeloom schema export¶
Write the JSON Schemas, with plugin options as oneOf branches.
Usage:
Options:
--out DIRECTORY Directory to write project.json and
properties.json into. [required]
--plugins [installed|builtin] Plugins whose options appear in the schema;
installed imports every plugin. [default:
installed]
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable
text or one JSON object per line. [default:
text]
--help Show this message and exit.
pipeloom unit-tests¶
Run the unit tests of the selected models on their given rows.
Each case runs the model body on in-memory input rows and compares its output with the expected rows. Nothing is written and no run is recorded. Exit codes: 0 every case passed, 1 a case failed or the project does not validate, 2 usage error, 130 interrupted.
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
-s, --select SELECTOR Models to include: name, tag:x, path:dir,
materialized:x, +model, model+, N+model, model+N.
Space unions, comma intersects. Repeatable, all
are unioned.
--exclude SELECTOR Remove the models this selector matches from the
selection. Repeatable.
--state DIR Folder of a reference manifest.json (and
optionally run_results.json), for the state: and
result: selectors. Relative to the project dir
unless absolute. `compile --stable` or the
artifacts root (target) both work.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--help Show this message and exit.
pipeloom validate¶
Check the project: YAML, schema, secrets, target and plugin options (L0 to L6).
Usage:
Options:
--project-dir DIRECTORY Directory that holds pipeloom.yml. [default: .]
--vars TEXT Variables as a YAML or JSON mapping; they override
the vars block.
--target TEXT Target to bind; default_target or the only target
when omitted.
--plugin MODULE:ATTR A PluginSpec to load besides the installed
plugins. Repeatable.
--log-format [text|json] Diagnostics and events on stderr: readable text or
one JSON object per line. [default: text]
--warn-error Exit 1 on warnings too.
--help Show this message and exit.