diff --git a/website/docs/reference/node-selection/syntax.md b/website/docs/reference/node-selection/syntax.md index ed0b563731d..3711ea79314 100644 --- a/website/docs/reference/node-selection/syntax.md +++ b/website/docs/reference/node-selection/syntax.md @@ -111,7 +111,7 @@ Constructing and debugging your selection syntax can be challenging. To get a " dbt ls --select "path/to/my/models" # Lists all models in a specific directory. dbt ls --select "source_status:fresher+" # Shows sources updated since the last dbt source freshness run. dbt ls --select state:modified+ # Displays nodes modified in comparison to a previous state. -dbt ls --select "result:+ state:modified+ --defer --state ./" # Lists nodes that match certain [result statuses](/reference/node-selection/syntax#the-result-status) and are modified. +dbt ls --select "result:+" state:modified+ --state ./ # Lists nodes that match certain [result statuses](/reference/node-selection/syntax#the-result-status) and are modified. ``` @@ -186,7 +186,7 @@ After issuing one of the above commands, you can reference the results by adding ```bash # You can also set the DBT_STATE environment variable instead of the --state flag. -dbt run --select "result: --defer --state path/to/prod/artifacts" +dbt run --select "result:" --defer --state path/to/prod/artifacts ``` The available options depend on the resource (node) type: @@ -205,7 +205,7 @@ The available options depend on the resource (node) type: The state and result selectors can also be combined in a single invocation of dbt to capture errors from a previous run OR any new or modified models. ```bash -dbt run --select "result:+ state:modified+ --defer --state ./" +dbt run --select "result:+" state:modified+ --defer --state ./ ``` ### Fresh rebuilds