A Terminal UI tool for managing Prisma migrations and the database, designed for developers who prefer the command line.
Note on Appearance: The screenshot above features the Dracula Dark theme and JetBrains Mono Nerd Font. We highly recommend using a Nerd Font for the best visual experience, as future updates will introduce more icons and symbols.
- Visualise Migrations: View Local, Pending, and DB-Only migrations in a clean, organised TUI.
- Safe Workflow: Built-in validations for checksum mismatches and empty migrations to prevent database inconsistencies.
- Prisma Studio Integration: Toggle Prisma Studio directly from the app (
Skey) with automatic process management (no more zombie processes). - Migration Management: Create (
d), Deploy (D), and Resolve (s) migrations effortlessly. - Quick Actions: Delete pending migrations (
Del/Backspace) and copy migration details to the clipboard (c).
brew tap DokaDev/lazyprisma
brew install lazyprismaDownload the latest binary from Releases.
LazyPrisma requires the Prisma CLI to be installed in your project:
npm install -D prismaNote: LazyPrisma uses
npx prismato execute commands. Ensurenpxis available in your shell path. It supports both the classicschema.prismaand the new Prisma v7+prisma.config.ts.
Navigate to your project directory and launch the application:
cd your-prisma-project
lazyprismaCheck the version:
lazyprisma --versionNavigation
←/→: Switch between panels (Workspace, Migrations, Details, Output).↑/↓: Scroll list or text content.Tab/Shift+Tab: Switch tabs within a panel (e.g., Local / Pending / DB-Only).
Core Actions
r: Refresh all panels and migration status.d: Migrate Dev – Create a new migration (Schema diff-based or empty Manual migration).D: Migrate Deploy – Apply pending migrations to the database.g: Generate – Runprisma generateto update the client.s: Resolve – Fix failed migrations (mark as applied or rolled back).S: Studio – Toggle the Prisma Studio server (opens in your default browser).
Utilities
c: Copy – Copy the selected migration's name, path, or checksum to the clipboard.⌫/Del: Delete – Delete the selected pending local migration folder.q: Quit – Exit the application (safely terminates any background Prisma Studio processes).
Ensure you have Go installed (1.21+ recommended).
# Clean and build
make clean
make
# Build and run immediately
make run
- Automatic
down.sqlGeneration: Initially planned for v0.2.x, but postponed due to technical constraints. We aim to implement this feature in a future sprint, alongside establishing a robustlazytuiframework and refactoring the codebase.
