Skip to content

Commit 7cddf77

Browse files
committed
docs: add information about --migrate
1 parent 0591903 commit 7cddf77

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ Without `--` this command will fail if `${GITLAB_JOB_TOKEN}` starts with a hyphe
630630
* `--unset`: Remove the configuration element named by `setting-key`.
631631
* `--list`: Show the list of current config variables.
632632
* `--local`: Set/Get settings that are specific to a project (in the local configuration file `poetry.toml`).
633+
* `--migrate`: Migrate outdated configuration settings.
633634

634635
## run
635636

docs/configuration.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,21 @@ This also works for secret settings, like credentials:
114114
export POETRY_HTTP_BASIC_MY_REPOSITORY_PASSWORD=secret
115115
```
116116

117+
## Migrate outdated configs
118+
119+
If poetry renames or remove config options it might be necessary to migrate explicit set options. This is possible
120+
by running:
121+
122+
```bash
123+
poetry config --migrate
124+
```
125+
126+
If you need to migrate a local config run:
127+
128+
```bash
129+
poetry config --migrate --local
130+
```
131+
117132
## Default Directories
118133

119134
Poetry uses the following default directories:

0 commit comments

Comments
 (0)