Skip to main content

VPC

Manage Workers VPC services using Wrangler. VPC services allow your Workers to connect to private services on your network through Cloudflare Tunnels.

vpc service create

Create a new VPC service

npx wrangler vpc service create <NAME>
yarn wrangler vpc service create <NAME>
pnpm wrangler vpc service create <NAME>
  • <NAME> string required

    The name of the VPC service

  • --type string required

    The type of the VPC service

  • --tcp-port number

    TCP port number

  • --app-protocol string

    Application protocol for the TCP service

  • --http-port number

    HTTP port (default: 80)

  • --https-port number

    HTTPS port number (default: 443)

  • --ipv4 string

    IPv4 address for the host [conflicts with --ipv6]

  • --ipv6 string

    IPv6 address for the host [conflicts with --ipv4]

  • --hostname string

    Hostname for the host

  • --resolver-ips string

    Comma-separated list of resolver IPs

  • --tunnel-id string required

    UUID of the Cloudflare tunnel

  • --cert-verification-mode string

    TLS certificate verification mode for the connection to the origin

vpc service delete

Delete a VPC service

npx wrangler vpc service delete <SERVICE-ID>
yarn wrangler vpc service delete <SERVICE-ID>
pnpm wrangler vpc service delete <SERVICE-ID>
  • <SERVICE-ID> string required

    The ID of the service to delete

vpc service get

Get a VPC service

npx wrangler vpc service get <SERVICE-ID>
yarn wrangler vpc service get <SERVICE-ID>
pnpm wrangler vpc service get <SERVICE-ID>
  • <SERVICE-ID> string required

    The ID of the VPC service

vpc service list

List VPC services

npx wrangler vpc service list
yarn wrangler vpc service list
pnpm wrangler vpc service list

vpc service update

Update a VPC service

npx wrangler vpc service update <SERVICE-ID>
yarn wrangler vpc service update <SERVICE-ID>
pnpm wrangler vpc service update <SERVICE-ID>
  • <SERVICE-ID> string required

    The ID of the VPC service to update

  • --name string required

    The name of the VPC service

  • --type string required

    The type of the VPC service

  • --tcp-port number

    TCP port number

  • --app-protocol string

    Application protocol for the TCP service

  • --http-port number

    HTTP port (default: 80)

  • --https-port number

    HTTPS port number (default: 443)

  • --ipv4 string

    IPv4 address for the host [conflicts with --ipv6]

  • --ipv6 string

    IPv6 address for the host [conflicts with --ipv4]

  • --hostname string

    Hostname for the host

  • --resolver-ips string

    Comma-separated list of resolver IPs

  • --tunnel-id string required

    UUID of the Cloudflare tunnel

  • --cert-verification-mode string

    TLS certificate verification mode for the connection to the origin