Skip to main content

db seed

Manage seed data from db/schema/<name>/seeds/.

Usage

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

<target>: local or remote

Options

OptionDescription
--applyApply seed data
--targetTarget for apply: local or remote (default: local)
--schema <name>Apply seeds for one schema only
-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

# Apply seeds for app schema only
postkit db seed --apply --schema app

What It Does

Without --apply, displays seed SQL across all schemas (or the specified schema).

With --apply, executes seed SQL for each schema in config order (or just --schema <name> if specified).

  • infra - Manage infrastructure