snow dbt 执行命令¶
snow dbt execute 命令在 Snowflake 上执行以下 dbt 命令 (https://docs.getdbt.com/reference/dbt-commands):
build (https://docs.getdbt.com/reference/commands/build)
compile (https://docs.getdbt.com/reference/commands/compile)
list (https://docs.getdbt.com/reference/commands/list)
parse (https://docs.getdbt.com/reference/commands/parse)
retry (https://docs.getdbt.com/reference/commands/retry)
run (https://docs.getdbt.com/reference/commands/run)
run-operation (https://docs.getdbt.com/reference/commands/run-operation)
seed (https://docs.getdbt.com/reference/commands/seed)
show (https://docs.getdbt.com/reference/commands/show)
snapshot (https://docs.getdbt.com/reference/commands/snapshot)
test (https://docs.getdbt.com/reference/commands/test)
有关使用 dbt 命令的更多信息,请参阅 dbt 命令参考 (https://docs.getdbt.com/reference/dbt-commands)。
备注
要在 Snowflake CLI 版本 3.15.0 中使用 --dbt-version 选项,必须先启用 SNOWFLAKE_CLI_FEATURES_ENABLE_DBT_VERSION 功能标志,可通过以下任一方式进行设置:
在运行命令之前,将
SNOWFLAKE_CLI_FEATURES_ENABLE_DBT_VERSION环境变量设置为true。在
config.toml文件中,将enable_dbt_version配置选项设置为:codenowrap:true,如下例所示:[features] enable_dbt_version = true