Documentation Index
Fetch the complete documentation index at: https://mintlify.com/withastro/flue/llms.txt
Use this file to discover all available pages before exploring further.
flue init writes a minimal flue.config.ts to a target directory. Run it once when setting up a new Flue project, or when you want to add an explicit config to an existing project.
Usage
Flags
Build target. Accepted values:
node or cloudflare. This value is written directly into the generated config file as target: '...'.Directory where
flue.config.ts will be written. Defaults to the current working directory.Overwrite an existing
flue.config.* file. Without this flag, flue init exits with an error if any flue.config.* variant already exists in the target directory.Output
flue init writes a single file — flue.config.ts — to the target directory:
Existing config files
If aflue.config.* file already exists in the target directory (in any supported extension — .ts, .mts, .mjs, .js, .cjs, .cts), flue init will refuse to overwrite it unless --force is passed.