Skip to main content

Module commands

Module commands 

Source
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 as CREATE SQL (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 starter drizzle.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.toml for one run (connection settings and filters), and the resolve_* functions that merge them with the config.
push
drizzle push: applies schema changes directly, without migration files.
renames
Rename-or-create prompts for drizzle generate and drizzle push, ported from drizzle-kit’s resolver (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.