本页还没有译文
本页 31 段还没译成简体中文,下面显示的是英文原文。Hyperdrive
还没翻译译自英文(developers.cloudflare.com)本页 31 段都还没译
Manage Hyperdrive database configurations using Wrangler.
To manage mTLS client certificates and CA chain certificates used by Hyperdrive, refer to Certificate commands.
hyperdrive create
Create a Hyperdrive config
npmyarnpnpm
npx wrangler hyperdrive create <NAME>yarn wrangler hyperdrive create <NAME>pnpm wrangler hyperdrive create <NAME>-
<NAME>string requiredThe name of the Hyperdrive config
-
--connection-stringstringThe connection string for the database you want Hyperdrive to connect to - ex: protocol://user:password@host:port/database
-
--service-idstringThe Workers VPC Service ID of the origin database
-
--origin-hoststring alias: --hostThe host of the origin database
-
--origin-portnumber alias: --portThe port number of the origin database
-
--origin-schemestring alias: --scheme default: postgresqlThe scheme used to connect to the origin database
-
--databasestringThe name of the database within the origin database
-
--origin-userstring alias: --userThe username used to connect to the origin database
-
--origin-passwordstring alias: --passwordThe password used to connect to the origin database
-
--access-client-idstringThe Client ID of the Access token to use when connecting to the origin database
-
--access-client-secretstringThe Client Secret of the Access token to use when connecting to the origin database
-
--caching-disabledbooleanDisables the caching of SQL responses
-
--max-agenumberSpecifies max duration for which items should persist in the cache, cannot be set when caching is disabled
-
--swrnumberIndicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled
-
--ca-certificate-idstring alias: --ca-certificate-uuidSets custom CA certificate when connecting to origin database. Must be valid UUID of already uploaded CA certificate.
-
--mtls-certificate-idstring alias: --mtls-certificate-uuidSets custom mTLS client certificates when connecting to origin database. Must be valid UUID of already uploaded public/private key certificates.
-
--sslmodestringSets sslmode for connecting to database. For PostgreSQL: 'require, verify-ca, verify-full'. For MySQL: 'REQUIRED, VERIFY_CA, VERIFY_IDENTITY'.
-
--origin-connection-limitnumberThe (soft) maximum number of connections that Hyperdrive may establish to the origin database
-
--bindingstringThe binding name of this resource in your Worker
-
--update-configbooleanAutomatically update your config file with the newly added resource
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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
hyperdrive delete
Delete a Hyperdrive config
npmyarnpnpm
npx wrangler hyperdrive delete <ID>yarn wrangler hyperdrive delete <ID>pnpm wrangler hyperdrive delete <ID>-
<ID>string requiredThe ID of the Hyperdrive config
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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
hyperdrive get
Get a Hyperdrive config
npmyarnpnpm
npx wrangler hyperdrive get <ID>yarn wrangler hyperdrive get <ID>pnpm wrangler hyperdrive get <ID>-
<ID>string requiredThe ID of the Hyperdrive config
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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
hyperdrive list
List Hyperdrive configs
npmyarnpnpm
npx wrangler hyperdrive listyarn wrangler hyperdrive listpnpm wrangler hyperdrive 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
hyperdrive planetscale signature
Experimental
Generate a signed authorization for creating a Cloudflare-billed PlanetScale database
npmyarnpnpm
npx wrangler hyperdrive planetscale signatureyarn wrangler hyperdrive planetscale signaturepnpm wrangler hyperdrive planetscale signatureGlobal 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
hyperdrive update
Update a Hyperdrive config
npmyarnpnpm
npx wrangler hyperdrive update <ID>yarn wrangler hyperdrive update <ID>pnpm wrangler hyperdrive update <ID>-
<ID>string requiredThe ID of the Hyperdrive config
-
--namestringGive your config a new name
-
--connection-stringstringThe connection string for the database you want Hyperdrive to connect to - ex: protocol://user:password@host:port/database
-
--service-idstringThe Workers VPC Service ID of the origin database
-
--origin-hoststring alias: --hostThe host of the origin database
-
--origin-portnumber alias: --portThe port number of the origin database
-
--origin-schemestring alias: --schemeThe scheme used to connect to the origin database
-
--databasestringThe name of the database within the origin database
-
--origin-userstring alias: --userThe username used to connect to the origin database
-
--origin-passwordstring alias: --passwordThe password used to connect to the origin database
-
--access-client-idstringThe Client ID of the Access token to use when connecting to the origin database
-
--access-client-secretstringThe Client Secret of the Access token to use when connecting to the origin database
-
--caching-disabledbooleanDisables the caching of SQL responses
-
--max-agenumberSpecifies max duration for which items should persist in the cache, cannot be set when caching is disabled
-
--swrnumberIndicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled
-
--ca-certificate-idstring alias: --ca-certificate-uuidSets custom CA certificate when connecting to origin database. Must be valid UUID of already uploaded CA certificate.
-
--mtls-certificate-idstring alias: --mtls-certificate-uuidSets custom mTLS client certificates when connecting to origin database. Must be valid UUID of already uploaded public/private key certificates.
-
--sslmodestringSets sslmode for connecting to database. For PostgreSQL: 'require, verify-ca, verify-full'. For MySQL: 'REQUIRED, VERIFY_CA, VERIFY_IDENTITY'.
-
--origin-connection-limitnumberThe (soft) maximum number of connections that Hyperdrive may establish to the origin database
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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile