Back to Prisma1

Prisma Seed Xcv8

docs/1.26/prisma-cli-and-configuration/cli-command-reference/prisma-seed-xcv8.mdx

1.34.12588 B
Original Source

export const meta = { title: "prisma seed", position: 200, }

$ prisma seed

Seeds the service with data.

This command expects that the seed property in prisma.yml is specified.

Usage

sh
prisma seed [flags]

Flags

-e, --env-file ENV-FILE    Path to .env file to inject env vars
-r, --reset                Reset the service before seeding

Examples

Seed service with initial data

sh
prisma seed

Seed service with initial data after deleting all of the service's data first

sh
prisma seed --reset