diff --git a/doc/api/cli.md b/doc/api/cli.md index e979ec95c4259d..8fe177a2cf0437 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -3903,6 +3903,25 @@ added: v7.1.0 When set to `1`, instructs the module loader to preserve symbolic links when resolving and caching modules. +### `NODE_PROXY_TUNNEL` + + + +> Stability: 1.1 - Active Development + +When `NODE_USE_ENV_PROXY=1` or `--use-env-proxy` is enabled, controls whether +proxy connections use the HTTP CONNECT tunneling method. + +When set to `true` or `1` (the default), undici uses CONNECT tunneling to establish +a proxy connection. When set to `false` or `0`, undici uses direct HTTP forwarding +instead, which may be required for proxies that do not support the CONNECT method. + +Valid values: `true`, `1`, `false`, `0`. + +See also [`NODE_USE_ENV_PROXY=1`][]. + ### `NODE_REDIRECT_WARNINGS=file`