Skip to content

Missing compatibility for prisma db seed command #387

@mwillbanks

Description

@mwillbanks

I noticed that the db seed CLI command is not available. This command is critical for development workflows that rely on Prisma’s seeding functionality for initializing databases with baseline or test data. The absence of db seed prevents a seamless migration path for teams already using standard Prisma CLI commands.

Expected Behavior

Running the following should execute a seed script just like Prisma’s native CLI:

npx zenstack db seed

The expected behavior is that ZenStack uses the same configuration seed definition to populate the database.

Actual Behavior

The CLI currently throws an error: unknown command 'seed' for db seed.
No seeding is performed, and the development process must rely on external workarounds.

Impact

  • Breaks compatibility with existing Prisma project scripts
  • Blocks developers from easily initializing local databases
  • Adds friction when onboarding new contributors who rely on npm run seed

Suggested Implementation

Implement support for the Prisma seeding interface (mirroring prisma db seed) or provide a ZenStack-specific alternative such as:

zenstack db seed --script ./prisma/seed.ts

Additional Context

Seeding is a fundamental part of local and CI development environments. Including this command will aide in day-to-day developer workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions