CLI & Workflow Reference
PrismSQL Developer Guide
1. Create a Branch from Main or Exact LSN
Use the Prism CLI locally or inside CI runners to fork an isolated Postgres endpoint in under half a second.
prism branch create pr-418-billing \
--parent main \
--masking-profile pii-safe \
--suspend-after 60s 2. Inspect Schema Diff & Blocking Locks
Run lock analysis before merging migrations into production.
prism diff main..pr-418-billing --check-locks
[PASS] idx_postings_idem uses CONCURRENTLY (no ACCESS EXCLUSIVE lock)
[INFO] Diverged 8KB pages: 1,840 (14.4 MB delta vs 2.0 TB base) 3. Reset a Branch After E2E Tests
prism branch reset pr-418-billing --to-parent-head