Skip to main content
Linking a database to an application enables private network access between them — your app can connect to the database without going over the public internet.
zwrm postgres link <database-name>
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication to link to

Example

zwrm postgres link my-db --app my-app
zwrm postgres unlink <database-name>
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication to unlink from
zwrm postgres links
FlagTypeDescription
--appstringShow databases linked to this app
--databasestringShow apps linked to this database
These flags are mutually exclusive. If neither is specified, the app name is read from zwrm.toml.

Examples

# Show databases linked to the current app
zwrm postgres links

# Show databases linked to a specific app
zwrm postgres links --app my-app

# Show apps linked to a specific database
zwrm postgres links --database my-db