TunnelWarpConnector
Source:
src/Cloudflare/Tunnel/WarpConnector.ts
A Cloudflare WARP Connector tunnel — a software site-to-site connector
that extends a private network into Cloudflare Zero Trust without
running cloudflared.
The resource manages the tunnel record itself (CRUD); a WARP Connector
host joins it at runtime using the token attribute. Pair with
{@link TunnelRoute} to route private CIDRs through the connector and
{@link TunnelVirtualNetwork} to isolate overlapping address space.
Creating a WARP Connector
Section titled “Creating a WARP Connector”Basic WARP Connector tunnel
const connector = yield* Cloudflare.TunnelWarpConnector("SiteA", { name: "site-a-connector",});// Provision the host with: warp-cli connector new <Redacted.value(connector.token)>Route a private network through the connector
yield* Cloudflare.TunnelRoute("SiteANet", { tunnelId: connector.tunnelId, network: "10.8.0.0/16",});Renaming
Section titled “Renaming”// Renaming patches the existing tunnel — same tunnelId, no replacement.const connector = yield* Cloudflare.TunnelWarpConnector("SiteA", { name: "site-a-connector-v2",});