Skip to content

Start typing to search the documentation.

flue dev

Last updated View as Markdown

Synopsis

flue dev [--target <node|cloudflare>] [--root <path>] [--output <path>] [--config <path>] [--port <number>] [--env <path>]

Description

flue dev builds the selected project, starts a local server, watches project files, and reloads after relevant changes. Restart the command after changing flue.config.*; running servers do not re-resolve configuration fields.

Options

OptionDefaultDescription
--target <node|cloudflare>Configuration valueSelect the development target. Required unless supplied by configuration.
--root <path>Selected config-file directory, or config search directorySelect the project root.
--output <path><root>/distSelect the build output directory.
--config <path>Auto-discovered flue.config.*Select a configuration file.
--port <number>3583Select the local server port.
--env <path><config-base>/.env, when presentSelect one alternate .env-format file loaded before configuration. Relative paths resolve from <config-base>. Shell values win.

Target-specific behavior

Node.js

Builds the Node artifact, starts the generated server, and rebuilds and respawns it after relevant file changes.

Cloudflare

Starts Vite with the official Workers integration. Cloudflare runtime bindings continue to use the official .dev.vars, .env, and CLOUDFLARE_ENV conventions.

Examples

flue dev
flue dev --target node
flue dev --target cloudflare --port 8787
flue dev --env .env.staging

See Develop & Build for the local development workflow.