# Getting Started (/docs/studio/getting-started)

Learn how to set up and use Prisma Studio to manage your database

Location: Studio > Getting Started

## Installation

Prisma Studio comes bundled with the Prisma CLI. Make sure you have Node.js installed, then install the Prisma CLI:

#### bun

```bash
bun add --global prisma@prev
```

#### pnpm

```bash
pnpm add -g prisma@prev
```

#### yarn

```bash
yarn global add prisma@prev
```

#### npm

```bash
npm install -g prisma@prev
```

## Launching Studio

### With a Prisma Project

If you have an existing Prisma project, navigate to your project directory and run:

#### bun

```bash
bunx prisma studio
```

#### pnpm

```bash
pnpm prisma studio
```

#### yarn

```bash
yarn prisma studio
```

#### npm

```bash
npx prisma studio
```

This will start the Studio server and open it in your default browser at `http://localhost:5555`.

### Without a Prisma Project

You can also use Studio with any database by providing a connection string:

#### bun

```bash
bunx prisma studio --url="postgresql://user:password@localhost:5432/yourdb"
```

#### pnpm

```bash
pnpm prisma studio --url="postgresql://user:password@localhost:5432/yourdb"
```

#### yarn

```bash
yarn prisma studio --url="postgresql://user:password@localhost:5432/yourdb"
```

#### npm

```bash
npx prisma studio --url="postgresql://user:password@localhost:5432/yourdb"
```

This is also how you launch Studio for a [Prisma ORM](/guides/introduction-2-orm) project, which has no `schema.prisma` to read. See [Studio with Prisma ORM](/guides/introduction-11-prisma-next).

## 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`

2. **Using command line**:
   ```bash
   npx prisma studio --url="your-database-connection-string"
   ```

## Basic Usage

### 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

- **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

- 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

### Viewing Table Relationships

- Related tables are shown as expandable rows
- Click the "+" icon to view related records

### Exporting Data

- Use the export button to download data as CSV or JSON
- Select specific columns to include in the export

## Next Steps

- Use Studio with a [Prisma ORM project](/guides/introduction-11-prisma-next) to read your applied migration history in the Migrations view
- Learn how to [embed Studio in your application](/guides/integrations-2-embedding)
- Discover [VS Code integration](/guides/integrations-2-vscode-integration) features

## Related pages

- [`Studio with Prisma ORM`](/guides/introduction-11-prisma-next): Apply migrations to Prisma Postgres with Prisma ORM, then inspect the migration history, schema changes, executed SQL, and data in Prisma Studio.

## Related pages

- [Authentication & Tools](./authentication-tools-index.md)
- [Build](./build-index.md)
- [Changelog](../changelog.md)
- [Concepts](./concepts-index.md)
- [Console commands](./console-commands-index.md)
- [Contract Authoring](./contract-authoring-index.md)
- [Core Concepts](./core-concepts-index.md)
- [Data Modeling](./data-modeling-index.md)
- [Database](./database-index.md)
- [DB commands](./db-commands-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
