dbt-labs / docs.getdbt.com

The code behind docs.getdbt.com
https://docs.getdbt.com/
Apache License 2.0
113 stars 863 forks source link

[Core] Order of precedence for project flags, environment variables, and CLI flags #5636

Open dbeatty10 opened 3 weeks ago

dbeatty10 commented 3 weeks ago

Link to the page(s) on docs.getdbt.com requiring updates

These pages are all related:

Tell us more about this update

It would be great if:

  1. All three of these pages cross-link to each other
  2. There were a common snippet across all three of these pages that explains the precedence order

The snippet could be similar / same as here.

Or it could be something as simple as this:

Config precedence

dbt will pick the config in the following order (lower takes priority):

  1. project flags
  2. environment variable
  3. CLI flag

i.e., if all three are provided, then the CLI flag takes precedence.

Reviewers/Stakeholders/SMEs

Me :sunglasse

Related GitHub issues

Came up most recently here:

Additional information

Related to these issues: