floo.app.toml and floo.service.toml config files.
Arguments
| Argument | Description |
|---|---|
NAME | App name. Prompted interactively if omitted. Required in --json mode. |
Flags
| Flag | Description | Default |
|---|---|---|
--path PATH | Project directory | . (current directory) |
Behavior
In interactive mode (default),floo init prompts for app name, service name, port, and type. It auto-detects your runtime (Node.js, Python, Go, static) and suggests defaults.
In non-interactive mode (--json), NAME is required. Detection runs automatically and defaults are applied without prompts.
Creates two files:
floo.app.toml— app-level configuration (name, services)floo.service.toml— service-level configuration (port, type, build settings)
Examples
Runtime auto-detection
| File | Runtime | Framework |
|---|---|---|
package.json + next | Node.js | Next.js |
package.json + vite | Node.js | Vite |
package.json + express | Node.js | Express |
requirements.txt / pyproject.toml | Python | FastAPI, Flask, Django |
go.mod | Go | — |
index.html (no backend) | Static | — |
JSON output
Errors
| Code | Meaning |
|---|---|
INVALID_PATH | Path is not a valid directory |
CONFIG_EXISTS | floo.app.toml already exists in the target directory |
MISSING_APP_NAME | NAME argument is required in --json mode |