PgBeam Docs
projectsenv

env pull

Pull DATABASE_URL to a local .env file.

Pull the DATABASE_URL connection string for a project to a local .env file. Use --stdout to print to stdout instead of writing to a file.

Usage

pgbeam env pull [--stdout]

Flags

FlagDescription
--stdoutPrint the connection string to stdout instead of writing to .env

Examples

# Write DATABASE_URL to .env
pgbeam env pull
# ✓ Wrote DATABASE_URL to .env

# Print to stdout (useful for piping)
pgbeam env pull --stdout
# postgresql://user:pass@proxy.pgbeam.dev:5432/mydb?sslmode=require

On this page