mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Document .netrc
environment variable and path (#8511)
## Summary Closes https://github.com/astral-sh/uv/issues/8482.
This commit is contained in:
parent
dff507702b
commit
ede47c0793
3 changed files with 9 additions and 5 deletions
|
@ -35,15 +35,18 @@ uv supports credentials over HTTP when querying package registries.
|
|||
Authentication can come from the following sources, in order of precedence:
|
||||
|
||||
- The URL, e.g., `https://<user>:<password>@<hostname>/...`
|
||||
- A [`netrc`](https://everything.curl.dev/usingcurl/netrc) configuration file
|
||||
- A [`.netrc`](https://everything.curl.dev/usingcurl/netrc) configuration file
|
||||
- A [keyring](https://github.com/jaraco/keyring) provider (requires opt-in)
|
||||
|
||||
If authentication is found for a single net location (scheme, host, and port), it will be cached for
|
||||
the duration of the command and used for other queries to that net location. Authentication is not
|
||||
cached across invocations of uv.
|
||||
|
||||
Note `--keyring-provider subprocess` or `UV_KEYRING_PROVIDER=subprocess` must be provided to enable
|
||||
keyring-based authentication.
|
||||
`.netc` authentication is enabled by default, and will respect the `NETRC` environment variable if
|
||||
defined, falling back to `~/.netrc` if not.
|
||||
|
||||
To enable keyring-based authentication, pass the `--keyring-provider subprocess` command-line
|
||||
argument to uv, or set `UV_KEYRING_PROVIDER=subprocess`.
|
||||
|
||||
Authentication may be used for hosts specified in the following contexts:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue