Creating a dbt project
To create your first dbt project, run:
$ dbt init [project-name]
This will create a new directory in your current path (i.e. at
./[project-name]) with a starter project. The starter project contains default configurations as well as helpful notes to get you started.
What is a dbt project?
A project is a directory of
.sql and .
yml files. The directory must contain at a minimum:
- Models: A model is a single
.sqlfile. Each model contains a single
selectstatement that either transforms raw data into a dataset that is ready for analytics, or, more often, is an intermediate step in such a transformation.
- A project file: a
dbt_project.ymlfile which specifies how dbt operates on your project.