Skip to content

flux.toml is the project manifest at the root of every Flux project. It configures the CLI and the dev server, and it is versioned with your project so every contributor gets the same ports and settings.

flux.toml
[project]
name = "todo"
entry = "main.flux"
[dev]
ws_port = 7331
http_port = 7332
Key Type Default Description
name string — Project name
entry string — The entry .flux file, usually main.flux
Key Type Default Description
ws_port integer 7331 WebSocket patch channel port
http_port integer 7332 HTTP asset server port (serves /health)
token string unset Pairing token hosts must present in the Hello handshake

flux dev reads these values, and its --ws-port / --http-port / --token flags override them for a single run.

Hosts read their token from the FLUX_DEV_TOKEN environment variable or from [dev] token in this file, and present it during the Hello handshake when the server was started with --token. Set the same secret in both places when you expose the dev server on a LAN — see the dev server guide.