GETTING STARTED
CLI
The rasengan-server binary (installed with the package) has three commands: dev, build, and start.
npx rasengan-server dev npx rasengan-server build npx rasengan-server start
dev
Starts a hot-reloading development server. Runs your entry file directly via tsx (no build step) and restarts the process whenever a watched file changes.
rasengan-server dev --port 4000
build
Bundles your server for production using esbuild. Produces one or both output formats depending on build.formats:
single-file— everything bundled into oneserver.bundle.mjs.directory— one.mjsper source file, preserving your project's structure.
rasengan-server build --preset node
start
Runs the production build produced by rasengan-server build — no compilation step, just executes the bundled output.
rasengan-server start
Flags
Every command accepts the same override flags, applied on top of rasengan.server.ts and the built-in defaults:
Configuration Resolution Order
Lowest to highest priority — later sources override earlier ones:
- Built-in defaults (shown in the table above).
rasengan.server.jsorrasengan.server.tsin the project root.- CLI flags.
See Config & Build for the full RasenganServerConfig shape, including build output options.
