Run dbt build without arguments to execute all models, tests, snapshots, and seeds in the project in DAG dependency order; dbt automatically sequences nodes so each model's tests run before downstream models that depend on it are materialized
Scope the build using node selectors: dbt build --select <model_name>+ runs the model and all downstream models and their tests; dbt build --select +<model_name> runs the model and all its upstream dependencies
Use --exclude to skip specific models or tags: dbt build --select models/marts/ --exclude tag:slow to build all mart models except those tagged as slow; combine with --target to specify the environment (dev, prod, ci)
Add the --fail-fast flag to abort the build immediately when any node fails rather than continuing with independent branches of the DAG; useful in CI where you want fast feedback on the first failure
Monitor build output: dbt outputs a summary at the end with pass/warn/error/skip counts for each node type (models, tests, snapshots); check the run_results.json artifact in target/ for structured output that CI tools can parse for detailed reporting
Known gotchas
dbt build runs tests immediately after each model materializes, not after all models finish; this means a test failure on an early model blocks dependent models from running — design your DAG so critical path models have minimal tests while detailed quality tests run on leaf models
Seeds are rebuilt from CSV files on every dbt build call, which can be slow for large seed files; consider moving large reference datasets out of seeds and into source tables ingested by your data pipeline, reserving seeds only for small lookup tables
dbt build does not run analyses or expose nodes; it only processes models, tests, snapshots, and seeds — if you need to compile analyses for documentation or ad-hoc validation, run dbt compile separately after dbt build
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp