@vibeli/cli
v1.0.0
Published
Vibeli CLI — codegen + declaration validation outside Vite (functions/CI/provisioner)
Downloads
240
Readme
@vibeli/cli
The Vibeli codegen as a CLI — the same generator the @vibeli/vite-plugin runs,
usable outside Vite (Deno functions, CI, the provisioner).
Install
npm install -D @vibeli/cliCommands
# Generate ./.vibeli/types.d.ts (+ schemas.js) from entities/*.json
vibeli generate --entities entities --out .vibeli
# Validate declarations only (no emit) — for CI / the provisioner
vibeli validate --entities entities
# Skip zod schemas
vibeli generate --no-zodRun vibeli generate before deno check functions/** or tsc so the generated
entity types are on disk. An invalid declaration exits non-zero with a clear,
backend-neutral message.
Library
The generator is also exported for programmatic use:
import { generate, validateEntityDecls, emitTypes, emitZod } from '@vibeli/cli'