dbt_project.yml

Every dbt project needs a dbt_project.yml file — this is how dbt knows a directory is a dbt project. It also contains important information that tells dbt how to operate on your project.

The following is a list of all available configurations in the dbt_project.yml file.

ℹ️
 

YAML syntax

dbt uses YAML in a few different places. If you're new to YAML, it would be worth taking the time to learn how arrays, dictionaries and strings are represented.
dbt_project.yml
name: string
version: version
profile: profilename
source-paths: [directorypath]
data-paths: [directorypath]
test-paths: [directorypath]
analysis-paths: [directorypath]
macro-paths: [directorypath]
snapshot-paths: [directorypath]
docs-paths: [directorypath]
target-path: directorypath
log-path: directorypath
modules-path: directorypath
clean-targets: [directorypath]
require-dbt-version: version-range | [version-range]
database: true | false
schema: true | false
identifier: true | false
models:
seeds:
snapshots:
on-run-start: sql-statement | [sql-statement]
on-run-end: sql-statement | [sql-statement]