mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Docs: JFrog Artifactory authentication instructions.
This commit is contained in:
parent
ac788d7cde
commit
a6eeb8f99f
1 changed files with 16 additions and 2 deletions
|
@ -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 <index_name> -u "" -p "$JFROG_TOKEN"
|
||||
```
|
||||
|
||||
Alternatively, you can set environment variables:
|
||||
|
||||
```console
|
||||
$ export UV_PUBLISH_USERNAME=""
|
||||
$ export UV_PUBLISH_PASSWORD="$JFROG_TOKEN"
|
||||
$ uv publish --index <index_name>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue