Drizzle Kit is a CLI migrator tool for Drizzle ORM, currently at stable version 0.31.10. It automatically generates SQL migrations from schema definitions, covering ~95% of common cases like deletions and renames by prompting user input. Released frequently with active development, it supports PostgreSQL, MySQL, and SQLite. Key differentiators include push schema (direct database sync), introspection, and zero-config migrations, making it a fast and developer-friendly alternative to tools like Prisma Migrate.
npm install drizzle-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a SQLite project with Drizzle, generates schema, and applies migrations to a local file database.
Wrap your config object with `defineConfig()` from 'drizzle-kit'
Use 'pg', 'mysql', or 'sqlite' as the dialect value
Move schema path to config file under `schema` key
Use different table names or separate databases
Add `npx drizzle-kit generate --force` to skip prompts
Use `npx drizzle-kit` to ensure local version, or reinstall with `npm install -D drizzle-kit`
Create a config file (e.g., `drizzle.config.ts`) with your schema path and credentials
Ensure you export the config as default: `export default defineConfig({...})`Replace 'postgres' with 'pg' in your config dialect field