Wrangler commands
npx wrangler hyperdrive create [NAME]pnpm wrangler hyperdrive create [NAME]yarn 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
-
--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
npx wrangler hyperdrive update [ID]pnpm wrangler hyperdrive update [ID]yarn 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
-
--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
npx wrangler hyperdrive listpnpm wrangler hyperdrive listyarn wrangler hyperdrive listnpx wrangler hyperdrive delete [ID]pnpm wrangler hyperdrive delete [ID]yarn wrangler hyperdrive delete [ID]-
[ID]string requiredThe ID of the Hyperdrive config
npx wrangler hyperdrive get [ID]pnpm wrangler hyperdrive get [ID]yarn wrangler hyperdrive get [ID]-
[ID]string requiredThe ID of the Hyperdrive config
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