mold init¶
Add AI config to an existing project.
Usage¶
mold init [flags]
Description¶
Adds kit files (CLAUDE.md, settings.json, etc.) to the current working directory. Unlike mold new, this command does not create a new directory, initialize git, or create an initial commit.
Flags¶
| Flag | Default | Description |
|---|---|---|
--beads |
false |
Use the Beads kit |
--kit <name> |
config default | Kit to use: original, beads, forge, or a custom kit name |
--no-beads |
false |
Disable beads issue tracking (forge kit) |
--stack <name> |
bare |
Tech stack template (go, rust, next, bare) |
--tools <list> |
claude |
Comma-separated AI tools, or all |
--force |
false |
Overwrite existing config files |
--dry-run |
false |
Preview without writing files |
Examples¶
Add Original kit to current directory:
mold init
Add Beads kit with extra AI tool files:
mold init --beads --tools copilot,gemini
Add Forge kit for product lifecycle:
mold init --kit forge
Overwrite existing config files:
mold init --force
Preview changes:
mold init --dry-run
Behavior¶
- Scans the current directory for conflicting files
- If conflicts exist and
--forceis not set, lists them and exits - Renders kit, stack, and tool template files into the current directory
- Does not run
git initor create commits
See also¶
- mold new -- create a brand new project