Skip to main content

serve

Run the server in development mode with hot reload.

npx balda serve ./src/index.ts

Arguments

  • entry: Entry point (default ./src/index.ts)

Flags

  • -d, --deno-import-map <string>: Deno import map path (Deno only)

Runtime Detection

The command automatically detects your runtime and uses the appropriate hot reload:

  • Bun: bun run --watch
  • Deno: deno run --watch with --unstable-sloppy-imports and --allow-all
  • Node.js: tsx (automatically installs if missing)

Example

npx balda serve ./src/server.ts