Skip to content

vibepg run ​

Synopsis ​

bash
vibepg run <name> <file>... [--transaction] [--continue-on-error]

Description ​

Execute one or more SQL files against the instance, in the order given. Files run sequentially through psql. By default, each file runs in its own implicit psql session, and execution stops on the first error.

Arguments ​

NameRequiredDescription
nameyesInstance name
file...yes (1+)One or more SQL file paths

Options ​

FlagTypeDefaultDescription
--transactionboolfalseWrap all files in a single BEGIN / COMMIT. Mutually exclusive with --continue-on-error.
--continue-on-errorboolfalseDon't stop on the first failure; run every file and report errors at the end.

Examples ​

bash
# One file
vibepg run demo schema.sql

# Multiple files, in order
vibepg run demo 0-schema.sql 1-fixtures.sql 2-indexes.sql

# Atomic multi-file run — all-or-nothing
vibepg run demo *.sql --transaction

# Best-effort run — keep going even if one fails
vibepg run demo *.sql --continue-on-error

Notes ​

  • Glob expansion happens in your shell, not in vibepg. The file order is whatever your shell hands over (zsh and bash sort lexically by default).
  • --transaction and --continue-on-error can't be combined — atomic and best-effort are inherently incompatible.

See also ​

Released under the MIT License.