@@ -2985,6 +2985,21 @@ environment variables.
29852985
29862986See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
29872987
2988+ ### ` --use-env-proxy `
2989+
2990+ <!-- YAML
2991+ added: REPLACEME
2992+ -->
2993+
2994+ > Stability: 1.1 - Active Development
2995+
2996+ When enabled, Node.js parses the ` HTTP_PROXY ` , ` HTTPS_PROXY ` and ` NO_PROXY `
2997+ environment variables during startup, and tunnels requests over the
2998+ specified proxy.
2999+
3000+ This is equivalent to setting the [ ` NODE_USE_ENV_PROXY=1 ` ] [ ] environment variable.
3001+ When both are set, ` --use-env-proxy ` takes precedence.
3002+
29883003### ` --use-largepages=mode `
29893004
29903005<!-- YAML
@@ -3486,6 +3501,7 @@ one is included in the list below.
34863501* ` --track-heap-objects `
34873502* ` --unhandled-rejections `
34883503* ` --use-bundled-ca `
3504+ * ` --use-env-proxy `
34893505* ` --use-largepages `
34903506* ` --use-openssl-ca `
34913507* ` --use-system-ca `
@@ -3641,8 +3657,8 @@ When enabled, Node.js parses the `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`
36413657environment variables during startup, and tunnels requests over the
36423658specified proxy.
36433659
3644- This currently only affects requests sent over ` fetch() ` . Support for other
3645- built-in ` http ` and ` https ` methods is under way .
3660+ This can also be enabled using the [ ` --use-env-proxy ` ] [ ] command-line flag.
3661+ When both are set, ` --use-env-proxy ` takes precedence .
36463662
36473663### ` NODE_USE_SYSTEM_CA=1 `
36483664
@@ -3989,6 +4005,7 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
39894005[ `--print` ] : #-p---print-script
39904006[ `--redirect-warnings` ] : #--redirect-warningsfile
39914007[ `--require` ] : #-r---require-module
4008+ [ `--use-env-proxy` ] : #--use-env-proxy
39924009[ `--use-system-ca` ] : #--use-system-ca
39934010[ `AsyncLocalStorage` ] : async_context.md#class-asynclocalstorage
39944011[ `Atomics.wait()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait
@@ -3997,6 +4014,7 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
39974014[ `ERR_INVALID_TYPESCRIPT_SYNTAX` ] : errors.md#err_invalid_typescript_syntax
39984015[ `ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX` ] : errors.md#err_unsupported_typescript_syntax
39994016[ `NODE_OPTIONS` ] : #node_optionsoptions
4017+ [ `NODE_USE_ENV_PROXY=1` ] : #node_use_env_proxy1
40004018[ `NO_COLOR` ] : https://no-color.org
40014019[ `SlowBuffer` ] : buffer.md#class-slowbuffer
40024020[ `Web Storage` ] : https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
0 commit comments