model-paths
dbt_project.yml
model-paths: [directorypath]
Definition
Optionally specify a custom list of directories where models, sources, and unit tests are located.
Default
By default, dbt will search for models and sources in the models
directory. For example, model-paths: ["models"]
.
model-paths
must be relative to the location of your dbt_project.yml
file. Avoid using absolute paths like /Users/username/project/models
, as it will lead to unexpected behavior and outcomes.
-
✅ Do
- Use relative path:
model-paths: ["models"]
- Use relative path:
-
❌ Don't:
- Avoid absolute paths:
model-paths: ["/Users/username/project/models"]
- Avoid absolute paths:
Examples
Use a subdirectory named transformations
instead of models
dbt_project.yml
model-paths: ["transformations"]
0