drt build
Run sync(s) and their tests in one invocation (sequential).
Per sync: run, then — on success — its tests. Overall sync status is run AND tests; a test failure exits non-zero but never rolls back loaded data.
Examples:
drt build
drt build --select tag:crm --fail-fast
drt build --select state:modified --state ci-baseline/manifest.json --dry-run
drt build --dry-run
Usage
drt build [OPTIONS]
Options
| Option | Type | Default | Description |
|---|---|---|---|
--select, -s | TEXT | Select syncs: name or glob, tag:<pattern>, destination:<type>, state:modified/state:new, or "*" / "all". Repeat to union. | |
--exclude | TEXT | Subtract syncs from the selection (same grammar as --select). Repeatable. | |
--state | PATH | Baseline manifest path for state:modified/state:new selectors (for example, a prior drt docs generate --format json CI artifact). | |
--dry-run | BOOLEAN | Preview runs and list the test plan without executing. | |
--fail-fast | BOOLEAN | Stop scheduling after the first failed sync or failed test. | |
--quiet, -q | BOOLEAN | Suppress output except errors. | |
--verbose | BOOLEAN | Show row-level error details. | |
--output, -o | TEXT | text | Output format: text or json. |
--profile, -p | TEXT | Override profile (default: drt_project.yml or DRT_PROFILE). |