Skip to content

Commit

Permalink
Placement of command options
Browse files Browse the repository at this point in the history
  • Loading branch information
nghi-ly committed Jul 13, 2023
1 parent e4466e1 commit 05e380d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 10 additions & 1 deletion website/docs/guides/migration/versions/02-upgrading-to-v1.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@ models:
tests: [] # todo! add tests later
config: ...
```
Some options that could previously be specified before a sub-command can now only be specified afterward. For example, `dbt --profiles-dir . run` isn't valid anymore, and instead, you need to use `dbt run --profiles-dir .`
Some options that could previously be specified _before_ a sub-command can now only be specified afterward. For example, `dbt --profiles-dir . run` isn't valid anymore, and instead, you need to use `dbt run --profiles-dir .`. The list of affected commands are:

-
-

Also, there are some options that could be previously specified _after_ a sub-command can now only be specified before. For example, `dbt run --log-path foo` isn't valid anymore, and instead, you need to use `dbt --log-path foo run`. The list of affected commands are:
-
-



Finally: The [built-in `generate_alias_name` macro](https://github.com/dbt-labs/dbt-core/blob/1.5.latest/core/dbt/include/global_project/macros/get_custom_name/get_custom_alias.sql) now includes logic to handle versioned models. If your project has reimplemented the `generate_alias_name` macro with custom logic, and you want to start using [model versions](/docs/collaborate/govern/model-versions), you will need to update the logic in your macro. Note that, while this is **not** a prerequisite for upgrading to v1.5—only for using the new feature—we recommmend that you do this during your upgrade, whether you're planning to use model versions tomorrow or far in the future.

Expand Down
7 changes: 6 additions & 1 deletion website/docs/reference/project-configs/log-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ The precedence order is: CLI flag > env var > `dbt_project.yml`
</VersionBlock>

## Examples
### Write logs to a subdirectory named `dbt_logs` instead of `logs`
### Specify subdirectory using the project config file

<File name='dbt_project.yml'>

```yml
log-path: dbt_logs
```

### Specify subdirectory from the command line

```bash
dbt --log-path dbt_logs run
```
</File>

0 comments on commit 05e380d

Please sign in to comment.