About drizzle-cli
Drizzle CLI is a command reference for using drizzle-kit to manage database schemas. It covers migration generation and application, development-only schema pushes, database inspection, and schema checks.
Key features
- 01Generate migrations from schema changes
- 02Apply database migrations
- 03Push schemas directly in development
- 04Inspect the database through a UI
- 05Check schemas against migrations
Use cases
- 01Generate migrations for schema changes
- 02Apply pending database migrations
- 03Push a schema during development
- 04Inspect a database and verify migrations
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ timschoch/ skilly --skill drizzle-cliAfter installing, type/drizzle-cliin Claude Code to confirm it loaded.
Details
From the project READMEDrizzle CLI
Schema changes go through drizzle-kit, never through hand-written SQL migrations.
- Generate a migration from schema changes:
drizzle-kit generate - Apply migrations:
drizzle-kit migrate - Push schema directly (dev only):
drizzle-kit push - Inspect the DB in a UI:
drizzle-kit studio - Sanity-check schema vs migrations:
drizzle-kit check - Discover more:
drizzle-kit --help
Config lives in drizzle.config.ts. Check the repo's npm scripts first — migrations are often wired into the build.
For current Drizzle documentation, use the context7 skill — there is no vendor docs skill for Drizzle yet.
Comments
Markdown supported