manic start
Run the production Bun server from the manic build output.
manic start
manic start runs the compiled production server produced by manic build.
Decision flow
Initializing diagram...
Requirements
${build.outdir}/server.jsmust exist (defaultbuild.outdiris.manic→.manic/server.js).- Run
manic buildfirst if you see “Build not found”.
What it runs
Source: packages/manic/src/cli/commands/start.ts
bun ${build.outdir}/server.jswith cwd set to the project root and env extended with:
| Variable | Value |
|---|---|
PORT | CLI --port / -p, else config.server.port, else 6070 |
NETWORK | true if --network was passed, else false |
NODE_ENV | production |
Stdout/stderr are inherited so logs appear in your terminal.
CLI flags
Same global parsing as manic dev:
-p,--port <number>— setsPORTfor the subprocess (see CLI Overview for how this interacts withserver.portinmanic.config.ts).--network— setsNETWORK=trueon the subprocess.
There is no manic start --help subcommand; manic --help lists global usage.
Typical use
manic build
manic start
manic start --port 8080In package.json, scaffold templates often wire "start": "manic start" after build.