drt plan
Compute what a sync would change, as a reviewable artifact.
Read-only: nothing is written to the destination, no watermark advances, no run state is persisted. A destination that cannot report its current contents yields "plan unavailable" with a reason (exit 1) instead of a partial plan.
Examples:
drt plan orders_to_pg --out plan.json
drt plan orders_to_pg --out plan.json --detailed-exitcode
drt plan --all --out-dir plans --output markdown # one PR comment for every sync
Usage
drt plan [OPTIONS] [SYNC_NAME]
Arguments
| Argument | Required | Description |
|---|---|---|
[SYNC_NAME] | no | Name of the sync to plan (or use --all). |
Options
| Option | Type | Default | Description |
|---|---|---|---|
--all | BOOLEAN | Plan every sync (for CI). Writes one <sync>.json per plannable sync into --out-dir; a sync that cannot be planned is reported, not fatal. | |
--out-dir | PATH | plans | Where --all writes the per-sync plans. |
--out | PATH | Write the plan to this file (plan.json). Omit to only summarize. | |
--output, -o | TEXT | text | Stdout format: text (summary), json (the full plan) or markdown (PR comment). |
--detailed-exitcode | BOOLEAN | Exit 0 when there are no changes, 2 when changes are present (1 stays an error). | |
--redact-keys | BOOLEAN | Hash key values in the plan instead of showing them (sync.mask columns are always hashed). | |
--include-values | BOOLEAN | Write destination-facing rows to an adjacent age-encrypted .payload sidecar. | |
--recipient | TEXT | age X25519 recipient for --include-values (repeatable). | |
--max-payload-rows | INTEGER | 10000 | Maximum rows in an exact-replay payload (default 10000). |
--cursor-value | TEXT | Override the cursor/watermark for incremental syncs. | |
--vars | TEXT | Override project vars, as for drt run. | |
--profile, -p | TEXT | Override profile. | |
--manifest-path | PATH | dbt manifest for contract.source: dbt (default: target/manifest.json). |