vibepg psql
Synopsis
bash
vibepg psql <name> [-- <psql args>...]Description
Drop into an interactive psql REPL inside the container. Any arguments after -- are forwarded to psql verbatim, so you can use the full psql flag surface (-c, -f, -v, etc.) without vibepg getting in the way.
Arguments
| Name | Required | Description |
|---|---|---|
name | yes | Instance name |
psql args... | no | Arguments after -- are forwarded to psql |
Options
None directly. Use -- to separate vibepg's args from psql's.
Examples
bash
# Interactive shell
vibepg psql demo
# Run a single query and exit
vibepg psql demo -- -c "select count(*) from users;"
# Quiet mode + tuples-only output (no headers, no row count)
vibepg psql demo -- -At -c "select email from users;"
# Set a psql variable
vibepg psql demo -- -v table_name=users -f script.sqlNotes
psqlrequires a TTY. If you're invoking from a script or non-interactive environment, useexecorruninstead.- The connection uses the credentials in your keychain — no need to set
PGPASSWORDyourself.