prisma studio
Browse your data with Prisma Studio - a visual database browser.Usage
Options
Display help message.Alias:
-hPort to start Prisma Studio on.Alias:
-pDefault: 51212Browser to open Prisma Studio in. Use
none to prevent opening a browser.Alias: -bEnvironment variable: BROWSERCustom path to your Prisma config file.
Database connection string. Overrides the URL in your Prisma config file.
Examples
Start Studio on default port
Start on custom port
Specify a browser
Prevent opening browser
Custom config file
Override database URL
Features
Browse Data
- View all tables/models in your database
- Paginate through records
- Sort by any column
- Filter records with powerful query builders
Edit Data
- Create new records
- Update existing records
- Delete records
- Edit related records through relations
Relations
- Navigate through relations
- Create and link related records
- View relation counts
- Disconnect relations
Search and Filter
- Text search across fields
- Advanced filtering with multiple conditions
- Date range filters
- Boolean filters
Supported Databases
Prisma Studio supports all databases that Prisma supports:- PostgreSQL (including Prisma Postgres, Neon, Supabase, etc.)
- MySQL (including PlanetScale)
- SQLite (including Turso, Cloudflare D1)
- SQL Server
- MongoDB (limited support)
Protocol Support
| Protocol | Support | |----------|---------|| |postgres://, postgresql:// | ✅ Full |
| prisma+postgres:// | ✅ Full (Prisma Accelerate) |
| mysql:// | ✅ Full |
| file: | ✅ Full (SQLite) |
| sqlserver:// | ❌ Not supported yet |
Connection Handling
Local SQLite
For SQLite databases, Studio uses:- Node.js built-in
sqlitemodule (Node.js >=22.5) - Falls back to
better-sqlite3(if installed) - Falls back to Deno or Bun SQLite modules (if available)
Remote PostgreSQL
Prisma Accelerate
Security Considerations
⚠️ Warning: Prisma Studio provides direct database access:- Only use on trusted networks
- Don’t expose Studio ports to the internet
- Use
--browser nonein production environments - Consider access controls for sensitive data
Port Conflicts
If the default port (51212) is in use, Prisma Studio automatically finds an available port:Stopping Studio
To stop Prisma Studio, pressCtrl+C in the terminal where it’s running.
Troubleshooting
Database Connection Errors
If Studio can’t connect to your database:- Verify your connection string is correct
- Check that the database server is running
- Ensure network connectivity
- Verify authentication credentials
Port Already in Use
Browser Doesn’t Open
Manually navigate to the URL shown in the terminal:Related Commands
prisma generate- Generate Prisma Clientprisma db push- Push schema changes to databaseprisma db pull- Pull schema from database