studio

Browse and manage your database data with Prisma Studio web interface

The prisma studio command starts a local web server with a web app to interactively browse and manage your data.

Usage

prisma studio [options]

Supported databases

Prisma Studio currently supports PostgreSQL, MySQL, and SQLite. Support for CockroachDB and MongoDB is not available yet but may be added in future releases.

Prerequisites

Configure your database connection in prisma.config.ts:

generator client {
  provider = "prisma-client"
  output   = "../generated/prisma"
}

datasource db {
  provider = "sqlite"
}
import { defineConfig, env } from "prisma/config";

export default defineConfig({
  schema: "prisma/schema.prisma",
  migrations: {
    path: "prisma/migrations",
  },
  datasource: {
    url: env("DATABASE_URL"),
  },
});

Options

OptionDescriptionDefault
-h, --helpDisplay help message
-p, --portPort number to start Studio on5555
-b, --browserBrowser to auto-open Studio inSystem default
--configCustom path to your Prisma config file
--urlDatabase connection string (overrides Prisma config)

Examples

Start Studio on the default port

npx prisma studio

Start Studio on a custom port

npx prisma studio --port 7777

Start Studio in a specific browser

npx prisma studio --browser firefox

Or using the BROWSER environment variable:

BROWSER=firefox prisma studio

Start Studio without opening a browser

npx prisma studio --browser none

Start Studio with a custom config file

npx prisma studio --config=./prisma.config.ts

Start Studio with a direct database connection string

npx prisma studio --url="postgresql://user:password@localhost:5432/dbname"

On this page