From a6eeb8f99f8c86ce8516eaef6299726fd76adbd9 Mon Sep 17 00:00:00 2001 From: Ondrej Profant Date: Wed, 25 Jun 2025 09:38:00 +0200 Subject: [PATCH] Docs: JFrog Artifactory authentication instructions. --- docs/guides/integration/alternative-indexes.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/guides/integration/alternative-indexes.md b/docs/guides/integration/alternative-indexes.md index 52ec6e365..4da2585b8 100644 --- a/docs/guides/integration/alternative-indexes.md +++ b/docs/guides/integration/alternative-indexes.md @@ -368,6 +368,20 @@ $ uv publish Note this method is not preferable because uv cannot check if the package is already published before uploading artifacts. -## Other package indexes +## JFrog's Artifactory -uv is also known to work with JFrog's Artifactory. +Parameters `-t "$JFROG_TOKEN"` used to the JFrog returns code 401 Unauthorized (Wrong username was used). + +To authenticate, pass your token as the password and set the username to an empty string: + +```console +uv publish --index -u "" -p "$JFROG_TOKEN" +``` + +Alternatively, you can set environment variables: + +```console +$ export UV_PUBLISH_USERNAME="" +$ export UV_PUBLISH_PASSWORD="$JFROG_TOKEN" +$ uv publish --index +```