Skip to content

Init

Scaffold a minimal drzl.config.ts in the current directory.

Usage:

bash
pnpm dlx @drzl/cli init
bash
npx @drzl/cli init
bash
yarn dlx @drzl/cli init
bash
bunx @drzl/cli init

Output example:

ts
export default {
  schema: 'src/db/schema.ts',
  outDir: 'src/api',
  analyzer: { includeRelations: true, validateConstraints: true },
  generators: [{ kind: 'orpc', template: 'standard', includeRelations: true }],
} as const;