How do you run models in a path?

Hey @jon-rtr - I totally agree that this syntax is confusing! In this example, you could run the models in models/red/ with:

dbt run --models red.*

The .* is actually superfluous in most cases, but I like to add it to make things explicit.

The --models flag works this way to support selecting:

  1. models by name
  2. directories
  3. packages

Since it supports selecting three different types of things, the syntax is necessarily a little weird. Hope this helps!

2 Likes