# Run with npx (no installation needed)
npx hviz
# Or with bunx
bunx hvizThat's it! hviz will guide you through the rest with interactive prompts.
Install globally for quick access:
# npm
npm install -g hviz
# bun
bun install -g hvizOr add to your project as a dev dependency:
# npm
npm install -D hviz
# bun
bun install -D hvizSimply run hviz and follow the prompts:
hvizThe CLI will ask you:
- Which ORM you're using (Prisma, Drizzle, or TypeORM)
- Path to your schema file (with smart suggestions)
Then it will:
- Parse your schema
- Generate an interactive ERD
- Start a local server
- Open the visualization in your browser
Specify all options directly:
# Prisma
hviz --type prisma --schema prisma/schema.prisma
# Drizzle
hviz --type drizzle --schema drizzle/schema.ts
# TypeORM
hviz --type typeorm --schema typeorm/schema.ts
# Custom port
hviz --type prisma --schema prisma/schema.prisma --port 4000| Option | Alias | Description | Default |
|---|---|---|---|
--type |
-t |
ORM type (prisma, drizzle, typeorm) | Interactive prompt |
--schema |
-s |
Path to schema file | Interactive prompt |
--port |
-p |
Port to run server on | 3000 |
--version |
-v |
Show version | - |
Please read our Contributing Guidelines for detailed information about
MIT