From: Daniel Stenberg Date: Mon, 8 Sep 2025 15:10:18 +0000 (+0200) Subject: _ENVIRONMENT.md: document NETRC X-Git-Tag: curl-8_16_0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8ff233cdffde8b6c55bc991d836f52f4c1b8553;p=thirdparty%2Fcurl.git _ENVIRONMENT.md: document NETRC Follow-up to 378713deb2cf5137c7cffe6227d9d5 Closes #18497 --- diff --git a/docs/cmdline-opts/_ENVIRONMENT.md b/docs/cmdline-opts/_ENVIRONMENT.md index 9562c630a1..53fe5c3421 100644 --- a/docs/cmdline-opts/_ENVIRONMENT.md +++ b/docs/cmdline-opts/_ENVIRONMENT.md @@ -48,7 +48,7 @@ number specifies the number of "network bits" out of the address to use in the comparison (added in 7.86.0). For example "192.168.0.0/16" would match all addresses starting with "192.168". -## `APPDATA ` +## `APPDATA ` On Windows, this variable is used when trying to find the home directory. If the primary home variables are all unset. @@ -61,7 +61,7 @@ using other ways. If set, it is used as the --cacert value. This environment variable is ignored if Schannel is used as the TLS backend. -## `CURL_HOME ` +## `CURL_HOME ` If set, is the first variable curl checks when trying to find its home directory. If not set, it continues to check *XDG_CONFIG_HOME* @@ -80,6 +80,11 @@ If set, this is used to find the home directory when that is needed. Like when looking for the default .curlrc. *CURL_HOME* and *XDG_CONFIG_HOME* have preference. +## `NETRC ` +If set, this is used to find the `.netrc` file. It overrides all other netrc +file location mechanisms and should be set to the full file path. +(Added in curl 8.16.0) + ## `QLOGDIR ` If curl was built with HTTP/3 support, setting this environment variable to a local directory makes curl produce **qlogs** in that directory, using file