init

dbt init [project_name] performs several actions necessary to create a new dbt project:

  • creates a ~/.dbt/profiles.yml file if one does not already exist
  • creates a new folder called [project_name]
  • generates directories and sample files necessary to get started with dbt

Adapter-specific profile

Changelog

You may optionally specify an --adapter. If you do, dbt will create ~/.dbt/profiles.yml (if one does not already exist) in accordance with the intended adapter type.

dbt init [project_name] --adapter bigquery

Note for plugin authors: The --adapter flag looks for a file named dbt/include/[adapter_name]/sample_profiles.yml. Check out dbt-spark and dbt-presto as examples.