PgBeam Docs
db

db add

Add a database connection to the project.

Add a database connection to the project. Without flags, runs interactively.

Usage

pgbeam db add [--host <host>] [--port <port>] [--database <name>] [--ssl-mode <mode>]

Flags

FlagDescription
--hostDatabase hostname or IP address
--portDatabase port (default 5432)
--databaseDatabase name
--ssl-modeSSL connection mode (prefer, require, verify-ca, verify-full)

Examples

# Interactive mode
pgbeam db add

# Fully specified
pgbeam db add --host db.example.com --port 5432 --database myapp --ssl-mode require

On this page