plan, build, test, audit, seed, clone, and diff.
Basic usage
--select (or -s for short) accepts one or more names. Multiple values are unioned. Space-separated names within one --select are also unioned. --exclude subtracts from the selected set.
When no --select is provided, all models are selected.
Selector types
Name
Select a single model by name:Tag
Select all models with a specific tag:Path
Select all models under a directory path:/ is treated as a path selector. path:marts, /marts, and marts/ all work the same way. Nested paths work too: staging/orders. The models/ prefix is stripped automatically, so use path:marts not path:models/marts.
Seed and source
Graph expansion
Upstream
Select a model plus all its upstream dependencies:Downstream
Select a model plus all its downstream dependents:Bidirectional
Path-between selectors
Select all models on the shortest path between two nodes:- All upstreams of
fact_orders - Every model on the path between
fact_ordersanddaily_activity_rollup - All downstreams of
daily_activity_rollup
Intersection
Use commas to intersect selector results:staging that are also under the finance directory.
Combining select and exclude
Error handling
Unknown model names, empty paths, and malformed selectors produce clear error messages:models/ prefix, SQLBuild suggests the correct form:

