Skip to content

CLI reference ​

Authoritative help: inlets --help and subcommands inlets client --help, inlets server --help. This page mirrors the repository README.md tables for quick lookup.

Client ​

HTTP tunnel ​

bash
inlets client [--server <url>] [auth flags] http <upstream>

TCP tunnel ​

bash
inlets client [--server <url>] [auth flags] tcp -p <publicPort> <upstream>

Client flags ​

ParameterDescriptionDefault
Subcommand http / tcpTunnel typeRequired
upstreamLocal port or host:portRequired
--sub-domainHTTP: custom subdomain—
-p, --portTCP: public port on server (INLETS_TUNNEL_PORT)—
-t, --tokenToken authentication—
--credentialsclientId:clientSecret—
--client-id / --client-secretOverrides --credentials when both set—
--serverv2 URL (http:// / https://, optional path)build default
-r, --remoteLegacy: server host:port—
--remote-tcp-portLegacy: TCP callback port8443
--healthcheck-intervalHeartbeat / auth timeout (ms)30000
--legacyUse v1 protocolfalse
--report-urlError report webhook—

Client environment variables (INLETS_*) ​

VariablePurpose
INLETS_SERVERv2 server URL
INLETS_TOKEN, INLETS_CREDENTIALSAuth
INLETS_CLIENT_ID, INLETS_CLIENT_SECRETCredential pair
INLETS_TUNNEL_PORT, INLETS_SUB_DOMAINTCP / HTTP helpers
INLETS_UPSTREAM_HTTP_USERNAME, INLETS_UPSTREAM_HTTP_PASSWORDLocal upstream Basic
INLETS_LEGACY, INLETS_REMOTE, INLETS_REMOTE_TCP_PORTLegacy mode
INLETS_HEALTHCHECK_INTERVAL, INLETS_REPORT_URLOps

Server ​

bash
inlets server -d <domain> [options]
ParameterDescriptionDefault
-d, --domainTunnel domain—
-p, --portHTTP/WebSocket port8080
--tcp-portTCP hub port8443
-s, --secureHTTPS URLstrue (typical)
-t, --tokenShared token—
-c, --configYAML pathsearch paths / $HOME/.config/inlets.yml
--notification-providerdingtalk, feishu, wecom, slack—
--notification-urlWebhook URL—

Server environment variables ​

VariablePurpose
INLETS_DOMAINDomain
INLETS_SERVER_PORT, INLETS_SERVER_TCP_PORTPorts
INLETS_SECUREHTTPS toggle
INLETS_NOTIFICATION_PROVIDER, INLETS_NOTIFICATION_URLAlerts

Forward ​

bash
inlets forward -s <listen> -t <target>

Local TCP forward helper (not the cloud tunnel).

Docs site ​

To work on this documentation: cd docs && pnpm install && pnpm dev. See maintainer README.

Documentation for the Inlets Go project.