Development Server
elide dev runs a development server with live reload and file watching, for iterating on web and script projects.
bash
elide dev ./srcAs 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
| Command | Purpose |
|---|---|
elide dev | Development: live reload, file watching, and an interactive TUI. |
elide serve | Serve static files over HTTP. |
elide dev while developing; use elide serve to serve built output.
Options
elide dev:
| Flag | Default | Description |
|---|---|---|
—host | 127.0.0.1 | Bind host. |
—port | 3000 | Bind port. |
—no-tui | Plain log output instead of the dashboard. | |
—no-watch | Disable 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.