@@ -2959,6 +2959,21 @@ environment variables.
29592959
29602960See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
29612961
2962+ ### ` --use-env-proxy `
2963+
2964+ <!-- YAML
2965+ added: REPLACEME
2966+ -->
2967+
2968+ > Stability: 1.1 - Active Development
2969+
2970+ When enabled, Node.js parses the ` HTTP_PROXY ` , ` HTTPS_PROXY ` and ` NO_PROXY `
2971+ environment variables during startup, and tunnels requests over the
2972+ specified proxy.
2973+
2974+ This is equivalent to setting the [ ` NODE_USE_ENV_PROXY=1 ` ] [ ] environment variable.
2975+ When both are set, ` --use-env-proxy ` takes precedence.
2976+
29622977### ` --use-largepages=mode `
29632978
29642979<!-- YAML
@@ -3458,6 +3473,7 @@ one is included in the list below.
34583473* ` --track-heap-objects `
34593474* ` --unhandled-rejections `
34603475* ` --use-bundled-ca `
3476+ * ` --use-env-proxy `
34613477* ` --use-largepages `
34623478* ` --use-openssl-ca `
34633479* ` --use-system-ca `
@@ -3613,8 +3629,8 @@ When enabled, Node.js parses the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`
36133629environment variables during startup, and tunnels requests over the
36143630specified proxy.
36153631
3616- This currently only affects requests sent over ` fetch() ` . Support for other
3617- built-in ` http ` and ` https ` methods is under way .
3632+ This can also be enabled using the [ ` --use-env-proxy ` ] [ ] command-line flag.
3633+ When both are set, ` --use-env-proxy ` takes precedence .
36183634
36193635### ` NODE_V8_COVERAGE=dir `
36203636
@@ -3943,12 +3959,14 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
39433959[ `--print` ] : #-p---print-script
39443960[ `--redirect-warnings` ] : #--redirect-warningsfile
39453961[ `--require` ] : #-r---require-module
3962+ [ `--use-env-proxy` ] : #--use-env-proxy
39463963[ `AsyncLocalStorage` ] : async_context.md#class-asynclocalstorage
39473964[ `Buffer` ] : buffer.md#class-buffer
39483965[ `CRYPTO_secure_malloc_init` ] : https://www.openssl.org/docs/man3.0/man3/CRYPTO_secure_malloc_init.html
39493966[ `ERR_INVALID_TYPESCRIPT_SYNTAX` ] : errors.md#err_invalid_typescript_syntax
39503967[ `ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX` ] : errors.md#err_unsupported_typescript_syntax
39513968[ `NODE_OPTIONS` ] : #node_optionsoptions
3969+ [ `NODE_USE_ENV_PROXY=1` ] : #node_use_env_proxy1
39523970[ `NO_COLOR` ] : https://no-color.org
39533971[ `SlowBuffer` ] : buffer.md#class-slowbuffer
39543972[ `Web Storage` ] : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
0 commit comments