# Drizzle CLI

> Run Drizzle schema migrations with drizzle-kit — generate, migrate, push, check, studio. Use when the Drizzle schema or its migrations change. Not for writing queries or app code.

- Skill: `timschoch/drizzle-cli` (Agent Skill)
- Install (CLI): `npx skillmds@latest add timschoch/drizzle-cli`
- Raw SKILL.md: https://api.skillmd.com/api/skills/timschoch/drizzle-cli/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: timschoch (https://skillmd.com/u/timschoch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/timschoch/drizzle-cli

---


# Drizzle 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.

