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-string
stringThe connection string for the database you want Hyperdrive to connect to - ex: protocol://user:password@host:port/database
-
--origin-host
string alias: --hostThe host of the origin database
-
--origin-port
number alias: --portThe port number of the origin database
-
--origin-scheme
string alias: --scheme default: postgresqlThe scheme used to connect to the origin database
-
--database
stringThe name of the database within the origin database
-
--origin-user
string alias: --userThe username used to connect to the origin database
-
--origin-password
string alias: --passwordThe password used to connect to the origin database
-
--access-client-id
stringThe Client ID of the Access token to use when connecting to the origin database
-
--access-client-secret
stringThe Client Secret of the Access token to use when connecting to the origin database
-
--caching-disabled
booleanDisables the caching of SQL responses
-
--max-age
numberSpecifies max duration for which items should persist in the cache, cannot be set when caching is disabled
-
--swr
numberIndicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled
-
--ca-certificate-id
string alias: --ca-certificate-uuidSets custom CA certificate when connecting to origin database. Must be valid UUID of already uploaded CA certificate.
-
--mtls-certificate-id
string alias: --mtls-certificate-uuidSets custom mTLS client certificates when connecting to origin database. Must be valid UUID of already uploaded public/private key certificates.
-
--sslmode
stringSets CA sslmode for connecting to database.
-
--origin-connection-limit
numberThe (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
-
--name
stringGive your config a new name
-
--connection-string
stringThe connection string for the database you want Hyperdrive to connect to - ex: protocol://user:password@host:port/database
-
--origin-host
string alias: --hostThe host of the origin database
-
--origin-port
number alias: --portThe port number of the origin database
-
--origin-scheme
string alias: --schemeThe scheme used to connect to the origin database
-
--database
stringThe name of the database within the origin database
-
--origin-user
string alias: --userThe username used to connect to the origin database
-
--origin-password
string alias: --passwordThe password used to connect to the origin database
-
--access-client-id
stringThe Client ID of the Access token to use when connecting to the origin database
-
--access-client-secret
stringThe Client Secret of the Access token to use when connecting to the origin database
-
--caching-disabled
booleanDisables the caching of SQL responses
-
--max-age
numberSpecifies max duration for which items should persist in the cache, cannot be set when caching is disabled
-
--swr
numberIndicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled
-
--ca-certificate-id
string alias: --ca-certificate-uuidSets custom CA certificate when connecting to origin database. Must be valid UUID of already uploaded CA certificate.
-
--mtls-certificate-id
string alias: --mtls-certificate-uuidSets custom mTLS client certificates when connecting to origin database. Must be valid UUID of already uploaded public/private key certificates.
-
--sslmode
stringSets CA sslmode for connecting to database.
-
--origin-connection-limit
numberThe (soft) maximum number of connections that Hyperdrive may establish to the origin database
npx wrangler hyperdrive list
pnpm wrangler hyperdrive list
yarn wrangler hyperdrive list
npx 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