Getting started
Install the CLI, scaffold a dbt project, inspect the generated structure, and run the next commands.
dbt-forge is a Python CLI that scaffolds new dbt projects, extends existing ones
with models, tests, and CI pipelines, validates project health, and keeps generated files
up to date as templates improve.
Use init to create a project. Use add to extend it. Use lint for architectural
checks. Use impact for blast radius analysis. Use cost for warehouse spend
insights. Use contracts generate for data contracts. Use changelog generate to
track breaking changes. Use doctor to validate best practices. Use status for
a project overview. Use update to re-apply templates.
Getting started
Install the CLI, scaffold a dbt project, inspect the generated structure, and run the next commands.
CLI reference
Use the init, add, lint, impact, cost, contracts, changelog, doctor, status, update, and preset reference pages for command syntax, flags, and generated files.
Project structure
See the directories and files created by the scaffold and what each part of the dbt project is for.
Development
Work on the Python CLI in cli/ and the public website in website/.
dbt project template
Learn what a practical dbt project template should include and how dbt-forge scaffolds it.
How to scaffold a dbt project
Follow the fastest path from installation to a repeatable dbt project scaffold with init.
Migrate SQL to dbt
Convert legacy SQL scripts into dbt models with ref() and source() using migrate.
dbt project best practices
Review naming, structure, tests, packages, and health checks for a maintainable dbt project.