# seed (Prisma CLI v7)

Seed your database with test or initial data using custom scripts

The `prisma db seed` command seeds your database with initial data.

## Usage

```bash
prisma db seed [options]
```

## Options

| Option         | Description                            |
| -------------- | -------------------------------------- |
| `-h`, `--help` | Display help message                   |
| `--config`     | Custom path to your Prisma config file |
| `--`           | Pass custom arguments to the seed file |

The `--` delimiter allows you to pass custom arguments to your seed script (available in version 4.15.0+).

## Examples

### Run the seed script

:::code-group
```bash title="bun"
bunx prisma db seed
```

```bash title="pnpm"
pnpm prisma db seed
```

```bash title="yarn"
yarn prisma db seed
```

```bash title="npm"
npx prisma db seed
```
:::

### Pass custom arguments

:::code-group
```bash title="bun"
bunx prisma db seed -- --arg1 value1 --arg2 value2
```

```bash title="pnpm"
pnpm prisma db seed -- --arg1 value1 --arg2 value2
```

```bash title="yarn"
yarn prisma db seed -- --arg1 value1 --arg2 value2
```

```bash title="npm"
npx prisma db seed -- --arg1 value1 --arg2 value2
```
:::

## See also

- [Seeding your database](/guides/prisma-migrate-workflows-seeding)

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