CLI Reference
All available flags for the eztunnel command.
| Flag | Type | Description |
|---|---|---|
-p, --portrequired | number | Local port to expose through the tunnel. |
-h, --host | string | Tunnel server URL to connect to. Defaults to the eztunnel public server. |
-s, --subdomain | string | Request a specific subdomain (4–63 lowercase alphanumeric characters). A random subdomain is assigned if omitted. |
-l, --local-host | string | Hostname to tunnel to instead of localhost. The Host header is rewritten automatically. |
--local-https | boolean | Connect to the local server over HTTPS instead of HTTP. |
--local-cert | string | Path to a TLS certificate file for local HTTPS connections. |
--local-key | string | Path to a TLS key file for local HTTPS connections. |
--local-ca | string | Path to a CA certificate file for local HTTPS connections. |
--allow-invalid-cert | boolean | Skip TLS certificate validation for the local server (useful with self-signed certs). |
-o, --open | boolean | Automatically open the tunnel URL in your default browser. |
--print-requests | boolean | Log every request that passes through the tunnel to the terminal. |