# Getting Started (/docs/studio/getting-started) > For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL. Learn how to set up and use Prisma Studio to manage your database Location: Studio > Getting Started ## Installation [#installation] Prisma Studio comes bundled with the Prisma ORM 7 CLI. The Prisma ORM 8 CLI has no `studio` command. Make sure you have Node.js installed. Most of the commands below run the Prisma ORM 7 CLI with `npx prisma@prev`, which npm fetches on demand, so no global install is needed. ## Launching Studio [#launching-studio] ### With a Prisma Project [#with-a-prisma-project] If you have an existing Prisma ORM 7 project, navigate to your project directory and run: #### npm ```bash npx prisma studio ``` #### pnpm ```bash pnpm prisma studio ``` #### yarn ```bash yarn prisma studio ``` #### bun ```bash bunx prisma studio ``` If you have a Prisma ORM 8 project, run Studio from a directory outside the project and pass the connection string: the Prisma ORM 7 CLI that ships Studio cannot read the Prisma ORM 8 `prisma.config.ts` and fails if it finds one. See [Studio with Prisma ORM](https://www.prisma.io/docs/studio/prisma-next) for the full workflow. Export the connection string in your shell first. Run from outside the project, Studio does not load the project's `.env` file: ```bash export DATABASE_URL="postgresql://user:password@localhost:5432/yourdb" cd .. && npx prisma@prev studio --url "$DATABASE_URL" ``` This will start the Studio server and open it in your default browser. Studio prints the local URL it serves on. ### Without a Prisma Project [#without-a-prisma-project] You can also use Studio with any database by providing a connection string: #### npm ```bash npx prisma@prev studio --url="postgresql://user:password@localhost:5432/yourdb" ``` #### pnpm ```bash pnpm dlx prisma@prev studio --url="postgresql://user:password@localhost:5432/yourdb" ``` #### yarn ```bash yarn dlx prisma@prev studio --url="postgresql://user:password@localhost:5432/yourdb" ``` #### bun ```bash bunx prisma@prev studio --url="postgresql://user:password@localhost:5432/yourdb" ``` To read a [Prisma ORM](https://www.prisma.io/docs/orm) project's applied migration history in Studio, see [Studio with Prisma ORM](https://www.prisma.io/docs/studio/prisma-next). ## Connecting to your database [#connecting-to-your-database] 1. **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` in a Prisma ORM 7 project. Prisma ORM 7 does not load `.env` on its own: your Prisma config file must import `dotenv/config`, which the config file generated by `prisma init` already does. See [Using environment variables](https://www.prisma.io/docs/orm/v7/reference/prisma-config-reference#using-environment-variables). In a Prisma ORM 8 project, Studio runs from outside the project and does not read this file: export the variable in your shell and run Studio as shown in [With a Prisma Project](#with-a-prisma-project). 2. **Using command line**: ```bash npx prisma@prev studio --url="your-database-connection-string" ``` ## Basic Usage [#basic-usage] ### Browsing Data [#browsing-data] - The left sidebar lists all your database tables - Click on a table to view its data - Use the search bar to find tables or columns ### Editing Data [#editing-data] - **Edit cells**: Double-click any cell to edit its value - **Add records**: Click the "+" button to add a new record - **Delete records**: Select records using checkboxes and click the trash icon ### Filtering and Sorting [#filtering-and-sorting] - Click the filter icon to add filters - Click on column headers to sort the table - Use the search box to filter records by any field ## Common Tasks [#common-tasks] ### Viewing Table Relationships [#viewing-table-relationships] - Related tables are shown as expandable rows - Click the "+" icon to view related records ### Exporting Data [#exporting-data] - Use the export button to download data as CSV or JSON - Select specific columns to include in the export ## Next Steps [#next-steps] - Use Studio with a [Prisma ORM project](https://www.prisma.io/docs/studio/prisma-next) to read your applied migration history in the Migrations view - Learn how to [embed Studio in your application](https://www.prisma.io/docs/studio/integrations/embedding) - Discover [VS Code integration](https://www.prisma.io/docs/studio/integrations/vscode-integration) features ## Related pages - [Studio with Prisma ORM](https://www.prisma.io/docs/studio/prisma-next): Apply migrations to Prisma Postgres with Prisma ORM, then inspect the migration history, schema changes, executed SQL, and data in Prisma Studio.