-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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.