VPC
Manage Workers VPC services using Wrangler. VPC services allow your Workers to connect to private services on your network through Cloudflare Tunnels.
Create a new VPC service
npx wrangler vpc service create [NAME]pnpm wrangler vpc service create [NAME]yarn wrangler vpc service create [NAME]-
[NAME]stringrequiredThe name of the VPC service
-
--typestringrequiredThe type of the VPC service
-
--tcp-portnumberTCP port number
-
--app-protocolstringApplication protocol for the TCP service
-
--http-portnumberHTTP port (default: 80)
-
--https-portnumberHTTPS port number (default: 443)
-
--ipv4stringIPv4 address for the host [conflicts with --ipv6]
-
--ipv6stringIPv6 address for the host [conflicts with --ipv4]
-
--hostnamestringHostname for the host
-
--resolver-ipsstringComma-separated list of resolver IPs
-
--tunnel-idstringrequiredUUID of the Cloudflare tunnel
-
--cert-verification-modestringTLS certificate verification mode for the connection to the origin
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
-
--install-skillsbooleandefault: falseInstall Cloudflare agents skills, if not already present, without asking the user for confirmation
Delete a VPC service
npx wrangler vpc service delete [SERVICE-ID]pnpm wrangler vpc service delete [SERVICE-ID]yarn wrangler vpc service delete [SERVICE-ID]-
[SERVICE-ID]stringrequiredThe ID of the service to delete
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
-
--install-skillsbooleandefault: falseInstall Cloudflare agents skills, if not already present, without asking the user for confirmation
Get a VPC service
npx wrangler vpc service get [SERVICE-ID]pnpm wrangler vpc service get [SERVICE-ID]yarn wrangler vpc service get [SERVICE-ID]-
[SERVICE-ID]stringrequiredThe ID of the VPC service
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
-
--install-skillsbooleandefault: falseInstall Cloudflare agents skills, if not already present, without asking the user for confirmation
List VPC services
npx wrangler vpc service listpnpm wrangler vpc service listyarn wrangler vpc service listGlobal flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
-
--install-skillsbooleandefault: falseInstall Cloudflare agents skills, if not already present, without asking the user for confirmation
Update a VPC service
npx wrangler vpc service update [SERVICE-ID]pnpm wrangler vpc service update [SERVICE-ID]yarn wrangler vpc service update [SERVICE-ID]-
[SERVICE-ID]stringrequiredThe ID of the VPC service to update
-
--namestringrequiredThe name of the VPC service
-
--typestringrequiredThe type of the VPC service
-
--tcp-portnumberTCP port number
-
--app-protocolstringApplication protocol for the TCP service
-
--http-portnumberHTTP port (default: 80)
-
--https-portnumberHTTPS port number (default: 443)
-
--ipv4stringIPv4 address for the host [conflicts with --ipv6]
-
--ipv6stringIPv6 address for the host [conflicts with --ipv4]
-
--hostnamestringHostname for the host
-
--resolver-ipsstringComma-separated list of resolver IPs
-
--tunnel-idstringrequiredUUID of the Cloudflare tunnel
-
--cert-verification-modestringTLS certificate verification mode for the connection to the origin
Global flags
-
--vbooleanalias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstringalias: --cPath to Wrangler configuration file
-
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-provisionbooleanaliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createbooleanalias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
-
--install-skillsbooleandefault: falseInstall Cloudflare agents skills, if not already present, without asking the user for confirmation