还没翻译·译自英文(developers.cloudflare.com)·本页 26 段都还没译
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>
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
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
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>
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
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>
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
List VPC services
npx wrangler vpc service list
yarn wrangler vpc service list
pnpm wrangler vpc service list
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
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
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile