Wrangler commands
The following Wrangler commands apply to Hyperdrive.
Create a Hyperdrive config
npx wrangler hyperdrive create [NAME]pnpm wrangler hyperdrive create [NAME]yarn wrangler hyperdrive create [NAME]-  --namestring 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 
-  --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 CA sslmode for connecting to database. 
-  --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 
-  --experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings 
-  --experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning 
Delete a Hyperdrive config
npx wrangler hyperdrive delete [ID]pnpm wrangler hyperdrive delete [ID]yarn wrangler hyperdrive delete [ID]-  --idstring 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 
-  --experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings 
-  --experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning 
Get a Hyperdrive config
npx wrangler hyperdrive get [ID]pnpm wrangler hyperdrive get [ID]yarn wrangler hyperdrive get [ID]-  --idstring 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 
-  --experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings 
-  --experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning 
List Hyperdrive configs
npx wrangler hyperdrive listpnpm wrangler hyperdrive listyarn 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 
-  --experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings 
-  --experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning 
Update a Hyperdrive config
npx wrangler hyperdrive update [ID]pnpm wrangler hyperdrive update [ID]yarn wrangler hyperdrive update [ID]-  --idstring 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 
-  --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 CA sslmode for connecting to database. 
-  --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 
-  --experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings 
-  --experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning 
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark