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]string requiredThe name of the VPC service
-
--typestring requiredThe type of the VPC 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-idstring requiredUUID of the Cloudflare tunnel
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --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-provisionboolean aliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createboolean alias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
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]string requiredThe ID of the service to delete
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --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-provisionboolean aliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createboolean alias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
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]string requiredThe ID of the VPC service
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --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-provisionboolean aliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createboolean alias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
List VPC services
npx wrangler vpc service listpnpm wrangler vpc service listyarn wrangler vpc service listGlobal flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --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-provisionboolean aliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createboolean alias: --x-auto-create default: trueAutomatically provision draft bindings with new resources
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]string requiredThe ID of the VPC service to update
-
--namestring requiredThe name of the VPC service
-
--typestring requiredThe type of the VPC 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-idstring requiredUUID of the Cloudflare tunnel
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --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-provisionboolean aliases: --x-provision default: trueExperimental: Enable automatic resource provisioning
-
--experimental-auto-createboolean alias: --x-auto-create default: trueAutomatically provision draft bindings with new resources