Skip to content
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
14 changes: 14 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,20 @@ This also works for secret settings, like credentials:
export POETRY_HTTP_BASIC_MY_REPOSITORY_PASSWORD=secret
```

## Configuration sources

When a setting is set in multiple places, Poetry applies the following precedence
(from highest to lowest):

1. Environment variables (for example, `POETRY_VIRTUALENVS_CREATE`)
2. The local `poetry.toml` file (created with `poetry config --local`)
3. The global `config.toml` file
4. The setting's default value

For repository credentials (`http-basic.*`, `pypi-token.*`), Poetry may also read
from `auth.toml` and the system keyring (for details see [Repositories]({{< relref "repositories" >}})).
Environment variables still take precedence over file-based values.

## Migrate outdated configs

If Poetry renames or remove config options it might be necessary to migrate explicit set options. This is possible
Expand Down
Loading