Select models from multiple directories

Is it possible to do all of the models in both blue folders with a structure is like this?

models
    colors
        blue
            some_blue.sql
        red
            some_red.sql
    new_colors
        blue
            new_blue.sql
        red
            new_red.sql
            

@Laminator
From the syntax that @drew suggested above, to run all files in the model in your both blue folders, it would requires 2 steps for dbt version of 0.21.0 or later.

dbt run --select colors.blue
dbt run --select new_colors.blue

1 Like

Jade is correct, but you could also combine them into a single command (space-separated commands in dbt will be treated as a union):

dbt run --select colors.blue new_colors.blue

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.