Manage DBT projects end-to-end: run, test, compile, document, and handle dependencies from automated workflows.
dbt_action
: Executes DBT operations for project management, model execution, testing, docs, snapshots, seeds, and dependency management. Controlled by the action parameter.
Run and Test
Compile and Document
Packages and Artifacts
Multi-Env Targets
Selective Execution
dbt_action
Name | Definition | Format |
---|---|---|
action | Operation to perform. Common values: init , run , test , compile , docs , seed , snapshot , clean , deps . | String (required) |
project_path | Path to the DBT project directory. | String |
profiles_dir | Directory containing profiles.yml . | String |
target | Target environment defined in profiles.yml . | String |
models | Specific model or list of models to run or test. | String or List |
select | DBT selection syntax to include nodes. | String |
exclude | DBT selection syntax to exclude nodes. | String |
vars | Variables to pass to DBT. | Object |
threads | Degree of parallelism. | Integer |
full_refresh | Force full refresh for incremental models. | Boolean |
fail_fast | Stop on first failure. | Boolean |
store_failures | Persist test failures to the database. | Boolean |
project_name | Name when creating a new project (for init ). | String |
database_adapter | Adapter for new projects (for init ). | String |
run
in CI to keep curated models fresh.test
on pull requests and block merges on failure.docs
and publish the site for analysts and stakeholders.full_refresh
during backfills or schema changes.deps
to ensure reproducible builds.action: init
for a new project or set project_path for an existing one.deps
to install packages from packages.yml
.run
with select or models, then test
to validate results.compile
to inspect SQL, then docs
to build the catalog and site.seed
, snapshot
, and clean
as needed for datasets and state.profiles.yml
contains correct credentials for each target.packages.yml
for reproducible builds.