Skip to content

create-lacis

create-lacis is the official scaffolding CLI. It sets up a new Lacis project with the right structure, entry point, and dependencies for your target platform.

Terminal window
npm create lacis@latest

The CLI asks three questions:

  1. Project name — becomes the directory name (lowercase letters, numbers, -, _, .)
  2. Platform — Node.js, Bun, Vercel, or Netlify
  3. Validation library — Zod, Valibot, ArkType, or none
  • Directorymy-app/
    • Directoryroutes/
      • index.ts
    • server.ts
    • package.json
    • tsconfig.json
    • .gitignore
// package.json scripts
{
"dev": "tsx watch server.ts",
"build": "lacis build"
}

Each validator choice adds the appropriate packages to dependencies:

ChoicePackages added
Zodzod, zod-to-json-schema
Valibotvalibot, @valibot/to-json-schema
ArkTypearktype
None

The converter packages (zod-to-json-schema, @valibot/to-json-schema) are needed for OpenAPI spec generation. If you don’t plan to use OpenAPI, you can remove them.