dbt Directories

dbt Directories #

Structure #

Here’s a good way to structure dbt directories:

/models
/models/marts/
/models/staging/

Configurations #

Within the dbt_project.yml:

  • Configurations can be set at a directory level.

  • Subdirectories can have their own particular configurations.

Run #

dbt runs can be kicked off at directory levels

dbt run -m <directory>.*