Installation
Use the create zelavis command to scaffold a new project with everything configured:
pnpm create zelavis@latestnpm create zelavis@latestbunx create-zelavis@latestThe setup wizard will ask for your project name, preferred framework, and deployment target.
Use zelavis bootstrap to add Zelavis endpoints to an existing app.
The command is interactive by default. Use --yes with explicit flags for non-interactive setup:
pnpm dlx @zelavis/cli bootstrap --helpReact Router
Section titled “React Router”pnpm dlx @zelavis/cli bootstrap react-routerGenerates:
app/lib/zelavis.server.tsapp/routes/zelavis.$.tsNext.js App Router
Section titled “Next.js App Router”pnpm dlx @zelavis/cli bootstrap nextjs --router appGenerates:
lib/zelavis.server.tsapp/zelavis/[[...path]]/route.tsNext.js Pages Router
Section titled “Next.js Pages Router”pnpm dlx @zelavis/cli bootstrap nextjs --router pagesGenerates:
lib/zelavis.tspages/api/zelavis/[[...path]].tsnext.config.tsAdapter selection
Section titled “Adapter selection”Each bootstrap command asks which environment the app will run on. Pass --adapter to skip the prompt:
pnpm dlx @zelavis/cli bootstrap react-router --adapter node --yespnpm dlx @zelavis/cli bootstrap nextjs --router app --adapter node --yesSupported adapters: node, bun.
See the CLI docs for the full command reference.