Skip to main content

db seed

Manage seed data from db/schema/seeds/.

Usage

postkit db seed [--apply] [--target <target>]

<target>: local or remote

Options

OptionDescription
--applyApply seed data
--targetTarget for apply: local or remote (default: local)
-v, --verboseEnable verbose output
--dry-runShow what would be done without making changes
--jsonOutput as JSON

Examples

# Show seed statements
postkit db seed

# Apply to local database
postkit db seed --apply

# Apply to remote database
postkit db seed --apply --target=remote

What It Does

Without --apply, displays the seed data SQL that would be run.

With --apply, executes the seed data SQL on the target database.