DBT
Run selected models

  1. Under the data loader block you just added, click the button DBT model, then click the option All models.

  2. In the DBT project name input field, enter the name of the DBT project that contains the models you want to build and run (e.g. demo).

  3. In the DBT profile target input field, enter the name of the DBT connection profile (e.g. dev) that you want to use when running the selected DBT models.

  4. In the text area of the code block, write the models you want to select or exclude using DBT’s --select and --exclude flags and syntax.

    For more information on the --select and --exclude syntax, read DBT’s documentation. For example:

    $ dbt run --select my_dbt_project_name   # runs all models in your project
    $ dbt run --select my_dbt_model          # runs a specific model
    $ dbt run --select path.to.my.models     # runs all models in a specific directory
    $ dbt run --select my_package.some_model # run a specific model in a specific package
    $ dbt run --select tag:nightly           # run models with the "nightly" tag
    $ dbt run --select path/to/models        # run models contained in path/to/models
    $ dbt run --select path/to/my_model.sql  # run a specific model by its path