Expand description
One module per drizzle subcommand; each exposes a run function.
Modules§
- check
drizzle check: validates the config and prints a summary.- export
drizzle export: prints the schema asCREATESQL (no database needed).- generate
drizzle generate: writes a migration folder from schema changes.- harness
- Shared command preamble helpers.
- import
drizzle import: ports a TypeScript drizzle-orm project by writing the Rust schema from its drizzle-kit migration snapshots.- init
drizzle init: writes a starterdrizzle.config.toml.- introspect
drizzle introspect/drizzle pull: reads a live database and writes a Rust schema file (and optionally initial migration metadata).- migrate
drizzle migrate: applies pending migrations to the database.- new
- Interactive schema builder (
drizzle new) - overrides
- Command-line flags that override
drizzle.config.tomlfor one run (connection settings and filters), and theresolve_*functions that merge them with the config. - push
drizzle push: applies schema changes directly, without migration files.- renames
- Rename-or-create prompts for
drizzle generateanddrizzle push, ported from drizzle-kit’sresolver(cli/prompts.ts). - seed
drizzle seed: fills a live database with deterministic test data.- status
drizzle status: lists local migrations.- upgrade
drizzle up: upgrades migration folders and snapshots to the current format.