flue init
Last updated
View as Markdown
Synopsis
flue init --target <node|cloudflare> [--root <path>] [--force]
Description
flue init writes a starter flue.config.ts. It does not create agents, workflows, or an application entrypoint.
Options
| Option | Default | Description |
|---|---|---|
--target <node|cloudflare> | Required | Select the target written to flue.config.ts. |
--root <path> | Current working directory | Select the existing directory in which to write flue.config.ts. |
--force | false | Write flue.config.ts when a flue.config.* file already exists. |
Without --force, any existing flue.config.* file prevents generation. If --force writes flue.config.ts beside another supported variant, the new .ts file takes precedence and the existing file remains on disk.
Output
The generated target value matches --target. For flue init --target node, the file is:
import { defineConfig } from '@flue/cli/config';
export default defineConfig({
target: 'node',
});
Examples
flue init --target node
flue init --target cloudflare --root ./apps/assistant
See Configuration for the complete flue.config.ts surface.