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
| Name | Required | Description |
|---|---|---|
name | yes | Instance name |
file... | yes (1+) | One or more SQL file paths |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--transaction | bool | false | Wrap all files in a single BEGIN / COMMIT. Mutually exclusive with --continue-on-error. |
--continue-on-error | bool | false | Don'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-errorNotes
- 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).
--transactionand--continue-on-errorcan't be combined — atomic and best-effort are inherently incompatible.