Skip to content

Commit

Permalink
Adjust the dbt README to document the use of the --target flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancochrane committed Jul 31, 2023
1 parent 1fd82dd commit 6c0fa37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dbt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ Build the models to create views in our Athena warehouse:
dbt run
```

By default, all `dbt` commands will run against the `dev` environment, which
namespaces the resources it creates by prefixing target database names with
your Unix `$USER` name (e.g. `jecochr-default` for the `default` database when
`dbt` is run on Jean's machine). To instead **run commands against prod**,
use the `--target` flag:

```
dbt run --target prod
```

Generate the documentation:

```
Expand Down

0 comments on commit 6c0fa37

Please sign in to comment.