Updated
On this page
Reference for the pgdesign seed command — usage, flags, arguments, and examples for the seed subcommand of the pgdesign CLI.
#pgdesign seed
Generate type-aware test data for all schema tables
Effect: mutating
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--rows | int | 10 | Number of rows to generate per table in the schema | ||
--seed | int | Random number generator seed for deterministic output | |||
--output | str | Write output to a file at this path instead of stdout | |||
--apply | bool | Insert generated seed data directly into the database | |||
--db | str | PGDESIGN_DB | PostgreSQL connection URL, required when using --apply | ||
--schema | str | PostgreSQL schema name to filter seed generation to | |||
--format | str | insert | SQL output format for generated seed data statements | ||
--clean | bool | Emit TRUNCATE CASCADE statements before inserting seeds | |||
--mode | str | normal | Data generation strategy: normal values or edge-cases |
#Arguments
| Name | Required | Description |
|---|---|---|
path | yes | Path to TOML schema file(s) or directory for seed generation |