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.
npm create lacis@latestPrompts
Section titled “Prompts”The CLI asks three questions:
- Project name — becomes the directory name (lowercase letters, numbers,
-,_,.) - Platform — Node.js, Bun, Vercel, or Netlify
- Validation library — Zod, Valibot, ArkType, or none
Generated structure
Section titled “Generated structure”Directorymy-app/
Directoryroutes/
- index.ts
- server.ts
- package.json
- tsconfig.json
- .gitignore
// package.json scripts{ "dev": "tsx watch server.ts", "build": "lacis build"}Directorymy-app/
Directoryroutes/
- index.ts
- server.ts
- package.json
- tsconfig.json
- .gitignore
// package.json scripts{ "dev": "bun --watch server.ts", "build": "lacis build"}Directorymy-app/
Directoryroutes/
- index.ts
Directoryapi/
- slug.ts
- vercel.json
- package.json
- tsconfig.json
- .gitignore
// package.json scripts{ "dev": "lacis dev", "build": "lacis build"}Directorymy-app/
Directoryroutes/
- index.ts
Directorynetlify/
Directoryfunctions/
- api.ts
- netlify.toml
- package.json
- tsconfig.json
- .gitignore
// package.json scripts{ "dev": "lacis dev", "build": "lacis build"}Validator dependencies
Section titled “Validator dependencies”Each validator choice adds the appropriate packages to dependencies:
| Choice | Packages added |
|---|---|
| Zod | zod, zod-to-json-schema |
| Valibot | valibot, @valibot/to-json-schema |
| ArkType | arktype |
| 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.