Skip to content

Start typing to search the documentation.

bapX init

Last updated View as Markdown

Synopsis

bapX init --target <node|cloudflare> [--root <path>] [--force]

Description

bapX init writes a starter bapX.config.ts. It does not create agents, workflows, or an application entrypoint.

Options

OptionDefaultDescription
--target <node|cloudflare>RequiredSelect the target written to bapX.config.ts.
--root <path>Current working directorySelect the existing directory in which to write bapX.config.ts.
--forcefalseWrite bapX.config.ts when a bapX.config.* file already exists.

Without --force, any existing bapX.config.* file prevents generation. If --force writes bapX.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 bapX init --target node, the file is:

import { defineConfig } from '@bapX/cli/config';

export default defineConfig({
  target: 'node',
});

Examples

bapX init --target node
bapX init --target cloudflare --root ./apps/assistant

See Configuration for the complete bapX.config.ts surface.