@@ -2999,6 +2999,21 @@ environment variables.
29992999
30003000See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
30013001
3002+ ### ` --use-env-proxy `
3003+
3004+ <!-- YAML
3005+ added: REPLACEME
3006+ -->
3007+
3008+ > Stability: 1.1 - Active Development
3009+
3010+ When enabled, Node.js parses the ` HTTP_PROXY ` , ` HTTPS_PROXY ` and ` NO_PROXY `
3011+ environment variables during startup, and tunnels requests over the
3012+ specified proxy.
3013+
3014+ This is equivalent to setting the [ ` NODE_USE_ENV_PROXY=1 ` ] [ ] environment variable.
3015+ When both are set, ` --use-env-proxy ` takes precedence.
3016+
30023017### ` --use-largepages=mode `
30033018
30043019<!-- YAML
@@ -3498,6 +3513,7 @@ one is included in the list below.
34983513* ` --track-heap-objects `
34993514* ` --unhandled-rejections `
35003515* ` --use-bundled-ca `
3516+ * ` --use-env-proxy `
35013517* ` --use-largepages `
35023518* ` --use-openssl-ca `
35033519* ` --use-system-ca `
@@ -3653,8 +3669,8 @@ When enabled, Node.js parses the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`
36533669environment variables during startup, and tunnels requests over the
36543670specified proxy.
36553671
3656- This currently only affects requests sent over ` fetch() ` . Support for other
3657- built-in ` http ` and ` https ` methods is under way .
3672+ This can also be enabled using the [ ` --use-env-proxy ` ] [ ] command-line flag.
3673+ When both are set, ` --use-env-proxy ` takes precedence .
36583674
36593675### ` NODE_V8_COVERAGE=dir `
36603676
@@ -3984,12 +4000,14 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
39844000[ `--print` ] : #-p---print-script
39854001[ `--redirect-warnings` ] : #--redirect-warningsfile
39864002[ `--require` ] : #-r---require-module
4003+ [ `--use-env-proxy` ] : #--use-env-proxy
39874004[ `AsyncLocalStorage` ] : async_context.md#class-asynclocalstorage
39884005[ `Buffer` ] : buffer.md#class-buffer
39894006[ `CRYPTO_secure_malloc_init` ] : https://www.openssl.org/docs/man3.0/man3/CRYPTO_secure_malloc_init.html
39904007[ `ERR_INVALID_TYPESCRIPT_SYNTAX` ] : errors.md#err_invalid_typescript_syntax
39914008[ `ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX` ] : errors.md#err_unsupported_typescript_syntax
39924009[ `NODE_OPTIONS` ] : #node_optionsoptions
4010+ [ `NODE_USE_ENV_PROXY=1` ] : #node_use_env_proxy1
39934011[ `NO_COLOR` ] : https://no-color.org
39944012[ `Web Storage` ] : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
39954013[ `YoungGenerationSizeFromSemiSpaceSize` ] : https://chromium.googlesource.com/v8/v8.git/+/refs/tags/10.3.129/src/heap/heap.cc#328
0 commit comments