Back to Prisma

seed

apps/docs/content/docs/cli/db/seed.mdx

latest773 B
Original Source

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

Usage

bash
prisma db seed [options]

Options

OptionDescription
-h, --helpDisplay help message
--configCustom 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

npm
npx prisma db seed

Pass custom arguments

npm
npx prisma db seed -- --arg1 value1 --arg2 value2

See also