snow dbt execute commands¶
The snow dbt execute command executes one of the following dbt commands on Snowflake:
For more information about using dbt commands, see the dbt Command reference.
Examples¶
The following examples show how to invoke snow dbt execute. The NAME argument identifies the dbt project object you want to run.
-
Execute the
builddbt command using a fully qualified object name: -
Execute the
rundbt command using a short name and project variables (relies on the default database and schema set in yourconfig.tomlconnection profile): -
Execute the
testdbt command and select a specific model subset:
For more examples and workflow guidance, see Managing dbt Projects on Snowflake using Snowflake CLI.
Note
To use the --dbt-version option in Snowflake CLI version 3.15.0, you must enable the SNOWFLAKE_CLI_FEATURES_ENABLE_DBT_VERSION feature flag, using either of the following methods:
- Set the
SNOWFLAKE_CLI_FEATURES_ENABLE_DBT_VERSIONenvironment variable totruebefore running the command. - Set the
enable_dbt_versionconfiguration option totruein theconfig.tomlfile, as shown in the following example: