@@ -2959,6 +2959,21 @@ environment variables.
2959
2959
2960
2960
See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
2961
2961
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
+
2962
2977
### ` --use-largepages=mode `
2963
2978
2964
2979
<!-- YAML
@@ -3458,6 +3473,7 @@ one is included in the list below.
3458
3473
* ` --track-heap-objects `
3459
3474
* ` --unhandled-rejections `
3460
3475
* ` --use-bundled-ca `
3476
+ * ` --use-env-proxy `
3461
3477
* ` --use-largepages `
3462
3478
* ` --use-openssl-ca `
3463
3479
* ` --use-system-ca `
@@ -3613,8 +3629,8 @@ When enabled, Node.js parses the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`
3613
3629
environment variables during startup, and tunnels requests over the
3614
3630
specified proxy.
3615
3631
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 .
3618
3634
3619
3635
### ` NODE_V8_COVERAGE=dir `
3620
3636
@@ -3943,12 +3959,14 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
3943
3959
[ `--print` ] : #-p---print-script
3944
3960
[ `--redirect-warnings` ] : #--redirect-warningsfile
3945
3961
[ `--require` ] : #-r---require-module
3962
+ [ `--use-env-proxy` ] : #--use-env-proxy
3946
3963
[ `AsyncLocalStorage` ] : async_context.md#class-asynclocalstorage
3947
3964
[ `Buffer` ] : buffer.md#class-buffer
3948
3965
[ `CRYPTO_secure_malloc_init` ] : https://www.openssl.org/docs/man3.0/man3/CRYPTO_secure_malloc_init.html
3949
3966
[ `ERR_INVALID_TYPESCRIPT_SYNTAX` ] : errors.md#err_invalid_typescript_syntax
3950
3967
[ `ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX` ] : errors.md#err_unsupported_typescript_syntax
3951
3968
[ `NODE_OPTIONS` ] : #node_optionsoptions
3969
+ [ `NODE_USE_ENV_PROXY=1` ] : #node_use_env_proxy1
3952
3970
[ `NO_COLOR` ] : https://no-color.org
3953
3971
[ `SlowBuffer` ] : buffer.md#class-slowbuffer
3954
3972
[ `Web Storage` ] : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
0 commit comments