From 91b69c672cfff1ee2eac29a15a1e32af8b775460 Mon Sep 17 00:00:00 2001 From: Eric Hanson <5846501+ericphanson@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:54:52 +0100 Subject: [PATCH] [docs] Clarify env variables for repo authentication (#8782) --- docs/repositories.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/repositories.md b/docs/repositories.md index 67427c32326..a06d45f9f46 100644 --- a/docs/repositories.md +++ b/docs/repositories.md @@ -498,11 +498,12 @@ if it exists for you use case instead of doing it yourself. Alternatively, you can use environment variables to provide the credentials: ```bash -export POETRY_PYPI_TOKEN_PYPI=my-token -export POETRY_HTTP_BASIC_PYPI_USERNAME= -export POETRY_HTTP_BASIC_PYPI_PASSWORD= +export POETRY_PYPI_TOKEN_FOO=my-token +export POETRY_HTTP_BASIC_FOO_USERNAME= +export POETRY_HTTP_BASIC_FOO_PASSWORD= ``` +where `FOO` is the name of the repository in uppercase (e.g. `PYPI`). See [Using environment variables]({{< relref "configuration#using-environment-variables" >}}) for more information on how to configure Poetry with environment variables.