nextvm serve
One-shot: build every module then spawn a local FXServer subprocess against the result. No file watching — restart the command after a code change.
For the rebuild-on-change loop, use nextvm dev --serve instead.
Synopsis
bash
nextvm serve # build then spawn FXServer
nextvm serve --no-build # skip the build step (use existing dist/)Flags
| Flag | Description |
|---|---|
--no-build | Skip the initial build and use whatever's already in each module's dist/. Handy when you've just built manually and only want to boot the server. |
Requires
A fxserver block in nextvm.config.ts. The command errors out with a hint if it's missing. See Local FXServer for the full setup.
What it does
- Loads the project
- Builds every module (unless
--no-build) - Resolves the FXServer binary
- Links modules into
<dataPath>/resources/[nextvm]/ - Generates
server.cfg.nextvmfromnextvm.config.ts - Spawns FXServer and streams logs with a cyan
[fx]prefix - On Ctrl+C: kills the FXServer process tree and removes the
[nextvm]/symlinks
See also
nextvm dev --serve— same setup but with file watching- Local FXServer — one-time setup walkthrough