apps/docs/content/docs/studio/getting-started.mdx
Prisma Studio comes bundled with the Prisma CLI. To get started, make sure you have Node.js installed, then install the Prisma CLI:
npm install -g prisma
If you have an existing Prisma project, navigate to your project directory and run:
npx prisma studio
This will start the Studio server and open it in your default browser at http://localhost:5555.
You can also use Studio with any database by providing a connection string:
npx prisma studio --url="postgresql://user:password@localhost:5432/yourdb"
Using environment variables:
Create a .env file in your project root with your database URL:
DATABASE_URL="postgresql://user:password@localhost:5432/yourdb"
Then run: npx prisma studio
Using command line:
npx prisma studio --url="your-database-connection-string"