Skip to content

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 ​

NameRequiredDescription
nameyesInstance name
psql args...noArguments 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.sql

Notes ​

  • psql requires a TTY. If you're invoking from a script or non-interactive environment, use exec or run instead.
  • The connection uses the credentials in your keychain — no need to set PGPASSWORD yourself.

See also ​

Released under the MIT License.