Skip to main content
Prisma Documentation Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

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.

Bash
prisma db seed [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+).

bun
bunx prisma db seed
pnpm
pnpm prisma db seed
yarn
yarn prisma db seed
npm
npx prisma db seed
bun
bunx prisma db seed -- --arg1 value1 --arg2 value2
pnpm
pnpm prisma db seed -- --arg1 value1 --arg2 value2
yarn
yarn prisma db seed -- --arg1 value1 --arg2 value2
npm
npx prisma db seed -- --arg1 value1 --arg2 value2
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu