Skip to content

Commit

Permalink
This works starting v1.6: --select resource_type:source
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Sep 22, 2024
1 parent 2d674ae commit 2196972
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions website/docs/reference/node-selection/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ Use the `resource_type` method to select nodes of a particular type (`model`, `t

```bash
dbt build --select "resource_type:exposure" # build all resources upstream of exposures
dbt list --select "resource_type:test" # list all tests in your project
```

Note: This method doesn't work for sources, so use the [`--resource-type`](/reference/commands/list) option of the list command instead:

```bash
dbt list --resource-type source
dbt list --select "resource_type:test" # list all tests in your project
dbt list --select "resource_type:source" # list all sources in your project
```

### The "path" method
Expand Down

0 comments on commit 2196972

Please sign in to comment.