Skip to main content

model-paths

dbt_project.yml
model-paths: [directorypath]

Definition

Optionally specify a custom list of directories where models and sources are located.

Default

By default, dbt will search for models and sources in the models directory, i.e. model-paths: ["models"].

Paths specified in model-paths must be relative to the location of your dbt_project.yml file. Avoid using absolute paths like /Users/username/project/models, as they may lead to unexpected behavior.
  • Do:

    # Recommended relative path example
    model-paths: ["models"]
  • Don't:

    # Avoid using absolute paths
    model-paths: ["/Users/username/project/models"]

Examples

Use a subdirectory named transformations instead of models

dbt_project.yml
model-paths: ["transformations"]
0