Been playing around a bit with the post-hooks and ...
# community-support
c
Been playing around a bit with the post-hooks and cannot figure this: How can I disable a post-hook that uploads the dbt run artefact when I run a specific command in my terminal? EG:
dbt run -m model1 --target prod
I am building various models so I don't want elementary to upload the results (yes its prod because that specific model isnt exposed , its just an example)
✅ 1
e
Hi @Cristian, you can find the instructions here :)
c
Thanks @Ella Katz. But this is for the whole project which I still want to keep upload. Could I modify this to suit my need:
Copy code
disable_dbt_invocation_autoupload: "{{ target.name != 'prod' }}"
like:
Copy code
disable_dbt_invocation_autoupload: "{{ tag = 'no_upload' }}"
?
i
Hey @Cristian! you can pass the var at the command line like shown in the following documentation. This will allow you to pass the relevant vars only when running the specific command 🙂
c
Ah gotcha. Thanks both on this.