Skip to content
Docs

inquir apps connect

Save a database connection URL on another application.

@inquir/compute-cliv0.3.0 · Node.js 22+

Usage#

inquir apps connectbash
inquir apps connect <database-app> <target-app> [options]

Options#

OptionDescription
--overwriteReplace an existing DATABASE_URL or REDIS_URL.
--jsonPrint machine-readable results.

Global flags, environments and CLI credentials

Examples#

Example 1bash
inquir apps connect db web
Example 2bash
inquir apps connect db web --overwrite
Example 3bash
inquir apps redeploy web

Behavior#

The server sets DATABASE_URL for PostgreSQL or REDIS_URL for Redis without printing the password. Redeploy the target to apply the saved variable.

Guides#