Skip to main content

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​

ArgumentRequiredDescription
[SYNC_NAME]noName of the sync to plan (or use --all).

Options​

OptionTypeDefaultDescription
--allBOOLEANPlan 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-dirPATHplansWhere --all writes the per-sync plans.
--outPATHWrite the plan to this file (plan.json). Omit to only summarize.
--output, -oTEXTtextStdout format: text (summary), json (the full plan) or markdown (PR comment).
--detailed-exitcodeBOOLEANExit 0 when there are no changes, 2 when changes are present (1 stays an error).
--redact-keysBOOLEANHash key values in the plan instead of showing them (sync.mask columns are always hashed).
--include-valuesBOOLEANWrite destination-facing rows to an adjacent age-encrypted .payload sidecar.
--recipientTEXTage X25519 recipient for --include-values (repeatable).
--max-payload-rowsINTEGER10000Maximum rows in an exact-replay payload (default 10000).
--cursor-valueTEXTOverride the cursor/watermark for incremental syncs.
--varsTEXTOverride project vars, as for drt run.
--profile, -pTEXTOverride profile.
--manifest-pathPATHdbt manifest for contract.source: dbt (default: target/manifest.json).