Wrangler commands
Create a new Hyperdrive configuration.
wrangler hyperdrive create <CONFIG_NAME> [OPTIONS]CONFIG_NAMEstring required- The name of the Hyperdrive configuration to create.
--connection-stringstring optional- The database connection string in the form
postgres://user:password@hostname:port/database.
- The database connection string in the form
--origin-hoststring optional- The hostname or IP address Hyperdrive should connect to.
--origin-portnumber optional- The database port to connect to.
--origin-schemestring optional- The scheme used to connect to the origin database, for example, postgresql or postgres.
--databasestring optional- The database (name) to connect to. For example, Postgres or defaultdb.
--origin-userstring optional- The username used to authenticate to the database.
--origin-passwordstring optional- The password used to authenticate to the database.
--access-client-idstring optional- The Client ID of the Access token to use when connecting to the origin database, must be set with a Client Access Secret. Mutually exclusive with
origin-port.
- The Client ID of the Access token to use when connecting to the origin database, must be set with a Client Access Secret. Mutually exclusive with
--access-client-secretstring optional- The Client Secret of the Access token to use when connecting to the origin database, must be set with a Client Access ID. Mutually exclusive with
origin-port.
- The Client Secret of the Access token to use when connecting to the origin database, must be set with a Client Access ID. Mutually exclusive with
--caching-disabledboolean optional- Disables the caching of SQL responses.
--max-agenumber optional- Specifies max duration for which items should persist in the cache, cannot be set when caching is disabled.
--swrnumber optional- Stale While Revalidate - Indicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled.
--ca-certificate-uuidstring optional- Sets custom CA certificate when connecting to origin database. Must be a valid UUID of a certificate uploaded via
wrangler certcommand.
- Sets custom CA certificate when connecting to origin database. Must be a valid UUID of a certificate uploaded via
--mtls-certificate-uuidstring optional- Sets custom mTLS client certificates when connecting to origin database. Must be a valid UUID of a certificate uploaded via
wrangler certcommand.
- Sets custom mTLS client certificates when connecting to origin database. Must be a valid UUID of a certificate uploaded via
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Update an existing Hyperdrive configuration.
wrangler hyperdrive update <ID> [OPTIONS]IDstring required- The ID of the Hyperdrive configuration to update.
--namestring optional- The new name of the Hyperdrive configuration.
--connection-stringstring optional- The database connection string in the form
postgres://user:password@hostname:port/database.
- The database connection string in the form
--origin-hoststring optional- The new database hostname or IP address Hyperdrive should connect to.
--origin-portstring optional- The new database port to connect to.
--origin-schemestring optional- The scheme used to connect to the origin database, for example, postgresql or postgres.
--databasestring optional- The new database (name) to connect to. For example, Postgres or defaultdb.
--origin-userstring optional- The new username used to authenticate to the database.
--origin-passwordstring optional- The new password used to authenticate to the database.
--access-client-idstring optional- The Client ID of the Access token to use when connecting to the origin database, must be set with a Client Access Secret. Mutually exclusive with
origin-port.
- The Client ID of the Access token to use when connecting to the origin database, must be set with a Client Access Secret. Mutually exclusive with
--access-client-secretstring optional- The Client Secret of the Access token to use when connecting to the origin database, must be set with a Client Access ID. Mutually exclusive with
origin-port.
- The Client Secret of the Access token to use when connecting to the origin database, must be set with a Client Access ID. Mutually exclusive with
--caching-disabledboolean optional- Disables the caching of SQL responses.
--max-agenumber optional- Specifies max duration for which items should persist in the cache, cannot be set when caching is disabled.
--swrnumber optional- Stale While Revalidate - Indicates the number of seconds cache may serve the response after it becomes stale, cannot be set when caching is disabled.
--ca-certificate-uuidstring optional- Sets custom CA certificate when connecting to origin database. Must be a valid UUID of a certificate uploaded via
wrangler certcommand.
- Sets custom CA certificate when connecting to origin database. Must be a valid UUID of a certificate uploaded via
--mtls-certificate-uuidstring optional- Sets custom mTLS client certificates when connecting to origin database. Must be a valid UUID of a certificate uploaded via
wrangler certcommand.
- Sets custom mTLS client certificates when connecting to origin database. Must be a valid UUID of a certificate uploaded via
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
List all Hyperdrive configurations.
wrangler hyperdrive listThe following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Delete an existing Hyperdrive configuration.
wrangler hyperdrive delete <ID>IDstring required- The name of the Hyperdrive configuration to delete.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Get an existing Hyperdrive configuration.
wrangler hyperdrive get <ID>IDstring required- The name of the Hyperdrive configuration to get.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- 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