支持的 dbt 命令和标志

下表显示了 dbt Projects on Snowflake 中支持的 dbt 命令。不支持此处未列出的任何 dbt 命令 (https://docs.getdbt.com/reference/dbt-commands)。

dbt Projects on Snowflake,通过执行方法支持 dbt 命令

dbt 命令

工作区

EXECUTE DBT PROJECT

snow dbt execute (CLI)

build (https://docs.getdbt.com/reference/commands/build)

compile (https://docs.getdbt.com/reference/commands/compile)

deps (https://docs.getdbt.com/reference/commands/deps) [1]

list (https://docs.getdbt.com/reference/commands/list)

parse (https://docs.getdbt.com/reference/commands/parse)

run (https://docs.getdbt.com/reference/commands/run)

retry (https://docs.getdbt.com/reference/commands/retry)

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)

[1] dbt 项目对象是项目的版本化快照。对其运行 deps 命令不会修改任何文件;它主要用于验证外部访问配置是否正确。使用外部访问集成创建 dbt 项目对象时,会在 dbt 编译之前运行 dbt deps,以打包所有依赖项和项目文件。

关于标志

在 dbt Core 中,您可以运行命令(例如,dbt build),并使用标志修改其行为。标志是修改命令行为方式的配置选项;有些是特定于命令的标志,有些是全局标志。有关更多信息,请参阅 标志 (https://docs.getdbt.com/reference/global-configs/about-global-configs)。

您始终运行命令,并将标志附加到范围或将其更改。例如,要仅运行增量模型并将其重建,您将运行以下命令和标志:

dbt run --select config.materialized:incremental --full-refresh;
Copy

dbt Projects on Snowflake 不支持以下标志:

  • --state

  • --target-path

  • --log-path

  • --profiles-dir

  • --project-dir

  • --log-format

  • --log-format-file

语言: 中文