@@ -2999,6 +2999,20 @@ 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+
30023016### ` --use-largepages=mode `
30033017
30043018<!-- YAML
@@ -3498,6 +3512,7 @@ one is included in the list below.
34983512* ` --track-heap-objects `
34993513* ` --unhandled-rejections `
35003514* ` --use-bundled-ca `
3515+ * ` --use-env-proxy `
35013516* ` --use-largepages `
35023517* ` --use-openssl-ca `
35033518* ` --use-system-ca `
@@ -3653,6 +3668,8 @@ When enabled, Node.js parses the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`
36533668environment variables during startup, and tunnels requests over the
36543669specified proxy.
36553670
3671+ This can also be enabled using the [ ` --use-env-proxy ` ] [ ] command-line flag.
3672+
36563673This currently only affects requests sent over ` fetch() ` . Support for other
36573674built-in ` http ` and ` https ` methods is under way.
36583675
@@ -3984,12 +4001,14 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
39844001[ `--print` ] : #-p---print-script
39854002[ `--redirect-warnings` ] : #--redirect-warningsfile
39864003[ `--require` ] : #-r---require-module
4004+ [ `--use-env-proxy` ] : #--use-env-proxy
39874005[ `AsyncLocalStorage` ] : async_context.md#class-asynclocalstorage
39884006[ `Buffer` ] : buffer.md#class-buffer
39894007[ `CRYPTO_secure_malloc_init` ] : https://www.openssl.org/docs/man3.0/man3/CRYPTO_secure_malloc_init.html
39904008[ `ERR_INVALID_TYPESCRIPT_SYNTAX` ] : errors.md#err_invalid_typescript_syntax
39914009[ `ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX` ] : errors.md#err_unsupported_typescript_syntax
39924010[ `NODE_OPTIONS` ] : #node_optionsoptions
4011+ [ `NODE_USE_ENV_PROXY=1` ] : #node_use_env_proxy1
39934012[ `NO_COLOR` ] : https://no-color.org
39944013[ `Web Storage` ] : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
39954014[ `YoungGenerationSizeFromSemiSpaceSize` ] : https://chromium.googlesource.com/v8/v8.git/+/refs/tags/10.3.129/src/heap/heap.cc#328
0 commit comments