Development Server

elide dev runs a development server with live reload and file watching, for iterating on web and script projects.
bash
 elide dev ./src

As files change, Elide refreshes the browser: elide dev injects a live-reload script into served HTML pages so edits appear without a manual refresh. It also provides an interactive terminal UI for the running session.

elide dev vs elide serve

CommandPurpose
elide devDevelopment: live reload, file watching, and an interactive TUI.
elide serveServe static files over HTTP.
Use elide dev while developing; use elide serve to serve built output.

Options

elide dev:
FlagDefaultDescription
—host 127.0.0.1Bind host.
—port 3000Bind port.
—no-tuiPlain log output instead of the dashboard.
—no-watchDisable file watching (and live reload).
elide serve accepts --host, --port, and --no-tui (it has no file watcher, so no --no-watch); elide start is an alias for elide serve.

How live reload works

elide dev injects a small script into served HTML that opens a Server-Sent Events stream at /__elide_dev/livereload; on a file change the server pushes a reload event. This is a dev-only feature — elide serve neither injects nor watches.

Directory subjects only

Both elide dev and elide serve start the HTTP server only when their subject is a directory (served with an index.html fallback). If the subject is a script file, it falls through to a normal engine run rather than starting a server.