You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also specify the username and password when using the `publish` command
473
473
with the `--username` and `--password` options.
474
474
475
-
If a system keyring is available and supported, the password is stored to and retrieved from the keyring. In the above example, the credential will be stored using the name `poetry-repository-pypi`. If access to keyring fails or is unsupported, this will fall back to writing the password to the `auth.toml` file along with the username.
476
-
477
-
Keyring support is enabled using the [keyring library](https://pypi.org/project/keyring/). For more information on supported backends refer to the [library documentation](https://keyring.readthedocs.io/en/latest/?badge=latest).
478
-
479
-
If you do not want to use the keyring, you can tell Poetry to disable it and store the credentials in plaintext config files:
475
+
If a system keyring is available and supported, the password is stored to and retrieved from the keyring.
476
+
Otherwise, credentials are stored in plaintext config files.
477
+
In order to use keyring, you have to install Poetry with its `keyring` extra (`poetry[keyring]`)
478
+
and enable keyring support:
480
479
481
480
```bash
482
-
poetry config keyring.enabled false
481
+
poetry config keyring.enabled true
483
482
```
484
483
484
+
In the above example, the credential will be stored using the name `poetry-repository-pypi`.
485
+
If access to keyring is disabled, fails or is unsupported, this will fall back to writing the password to the `auth.toml` file along with the username.
486
+
487
+
Keyring support is enabled using the [keyring library](https://pypi.org/project/keyring/). For more information on supported backends refer to the [library documentation](https://keyring.readthedocs.io/en/latest/?badge=latest).
488
+
485
489
{{% note %}}
486
490
487
491
Poetry will fall back to Pip style use of keyring so that backends like
0 commit comments