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]
-
--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
Global flags
-
--v
boolean alias: --versionShow version number
-
--cwd
stringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--config
string alias: --cPath to Wrangler configuration file
-
--env
string alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-file
stringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindings
boolean aliases: --x-remote-bindingsExperimental: Enable Remote Bindings
-
--experimental-provision
boolean 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]
-
--id
string requiredThe ID of the Hyperdrive config
Global flags
-
--v
boolean alias: --versionShow version number
-
--cwd
stringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--config
string alias: --cPath to Wrangler configuration file
-
--env
string alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-file
stringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindings
boolean aliases: --x-remote-bindingsExperimental: Enable Remote Bindings
-
--experimental-provision
boolean 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]
-
--id
string requiredThe ID of the Hyperdrive config
Global flags
-
--v
boolean alias: --versionShow version number
-
--cwd
stringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--config
string alias: --cPath to Wrangler configuration file
-
--env
string alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-file
stringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindings
boolean aliases: --x-remote-bindingsExperimental: Enable Remote Bindings
-
--experimental-provision
boolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
List Hyperdrive configs
npx wrangler hyperdrive list
pnpm wrangler hyperdrive list
yarn wrangler hyperdrive list
Global flags
-
--v
boolean alias: --versionShow version number
-
--cwd
stringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--config
string alias: --cPath to Wrangler configuration file
-
--env
string alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-file
stringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindings
boolean aliases: --x-remote-bindingsExperimental: Enable Remote Bindings
-
--experimental-provision
boolean 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]
-
--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
Global flags
-
--v
boolean alias: --versionShow version number
-
--cwd
stringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--config
string alias: --cPath to Wrangler configuration file
-
--env
string alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-file
stringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindings
boolean aliases: --x-remote-bindingsExperimental: Enable Remote Bindings
-
--experimental-provision
boolean 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
-