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.
Format
Section titled “Format”[project]name = "todo"entry = "main.flux"
[dev]ws_port = 7331http_port = 7332[project]
Section titled “[project]”| 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.
Pairing tokens
Section titled “Pairing tokens”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.
Next steps
Section titled “Next steps”- CLI reference for the flags that override these keys.
- Wire protocol reference for the handshake the token guards.
