Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This works starting v1.6: --select resource_type:source #6115

Merged
merged 4 commits into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading