Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Latest commit

History

History
37 lines (25 loc) 路 588 Bytes

File metadata and controls

37 lines (25 loc) 路 588 Bytes

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

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

prisma seed

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

prisma seed --reset