Search code examples
command-line-interfacedbt

dbt cli run - only project pre or post hooks?


Is there a way to use the dbt cli to run my project's hooks without running any models?

i.e.

dbt run --post-hooks

Solution

  • If you have a macro you want to run in isolation from the rest of the resources in your project, you may want to look into operations:

    dbt run-operation my_macro