https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
j

Joshua Allen

05/22/2023, 3:27 PM
Anyone have any idea if it's possible to add arguments to the dbt CLI command run by Dagster? Hoping to pass something other than the default for the
indirect-selection
argument since I can't get anything global to work
r

rex

05/22/2023, 8:25 PM
Hey Joshua, this isn’t possible ergonomically right now. We’re looking to land a refactor of the dbt resource in this week’s release that will make this sort of configuration possible (see https://github.com/dagster-io/dagster/pull/14267). For now, you could configure this by configuring the CLI using dbt’s environment variables. So you could set the
indirect-selection
configuration using the
DBT_INDIRECT_SELECTION
environment variable. You could check out https://docs.getdbt.com/reference/global-configs to see more information about that.
j

Joshua Allen

05/22/2023, 10:14 PM
Yup!! Was actually chatting with the dbt core team and the environment variable didn't work on dbt version 1.4.6 but after upgrading to 1.5.0 it worked as expected. Thanks for the information 😄
3 Views