Skip to content
Warlock.js v4

Create Warlock

create-warlock is the official project scaffolder. One command drops you into a short interactive wizard, and a couple of questions later you have a complete, configured Warlock project that boots.

Terminal window
npm create warlock@latest my-app
# or: yarn create warlock my-app · pnpm create warlock my-app
cd my-app

The wizard asks a few questions — project name, package manager, database driver, the optional features you want (mail, caching, the scheduler, storage, and friends), and whether to initialize git and generate JWT secrets — then writes everything from your answers and runs the install for you. Scripting it in CI? Pass --yes with flags to skip the prompts and take the defaults.

What lands is a ready-to-run app: the src/app (one folder per feature) + src/config (one file per subsystem) layout, a warlock.config.ts, decorators already enabled in tsconfig.json, and a dev server you start with npm run dev.

  • Full walkthroughCore · Installation — every question, the scaffolded file tree, and booting the dev server, step by step.
  • Your first endpointCore · Getting Started — from a fresh project to a working route.
  • Scaffold as you buildCore · Generatorswarlock generate.module, generate.controller, and the rest of the family.