diff --git a/docs/content/integrations/dbt/reference.mdx b/docs/content/integrations/dbt/reference.mdx index 7e3aa8fbb25ff..ca1c13065ddde 100644 --- a/docs/content/integrations/dbt/reference.mdx +++ b/docs/content/integrations/dbt/reference.mdx @@ -161,6 +161,12 @@ In your CI/CD workflows for your Dagster and dbt project: ## Leveraging dbt defer with branch deployments + + This feature requires the `DAGSTER_BUILD_STATEDIR` environment variable to be + set in your CI/CD. Learn more about required environment variables in CI/CD + for Dagster+ here. + + It is possible to leverage [dbt defer](https://docs.getdbt.com/reference/node-selection/defer) by passing a `state_path` to . This is useful for testing recent changes made in development against the state of the dbt project in production. Using `dbt defer`, you can run a subset of models or tests, those that have been changed between development and production, without having to build their upstream parents first. In practice, this is most useful when combined with branch deployments in Dagster+, to test changes made in your branches. This can be done by updating your CI/CD files and your Dagster code.