BMAD-METHOD/tools/installer
Brian Madison af0e767ecf fix: prevent double installation when updating v4
- Added flag to prevent installer.install() being called twice
- Fixed undefined 'directory' error by using answers.directory
- Update flow now completes without errors
- Prevents 'Cannot read properties of undefined' error after successful update

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 12:43:58 -05:00
..
bin fix: prevent double installation when updating v4 2025-06-19 12:43:58 -05:00
config Node 20, installer improvements, agent improvements and Expansion Pack for game dev (#232) 2025-06-16 18:34:12 -05:00
lib fix: resolve undefined config properties in performUpdate 2025-06-19 12:41:19 -05:00
templates formatter updates 2025-06-14 18:11:16 -05:00
README.md style: apply prettier and yaml formatting 2025-06-15 14:20:19 -05:00
package-lock.json Node 20, installer improvements, agent improvements and Expansion Pack for game dev (#232) 2025-06-16 18:34:12 -05:00
package.json chore(release): 4.6.3 [skip ci] 2025-06-19 03:55:00 +00:00

README.md

BMAD Method Installer

This directory contains the BMAD Method installer implementation.

Structure

installer/
├── bin/              # CLI entry points
│   └── bmad.js      # Main CLI executable
├── lib/             # Core implementation
│   ├── installer.js # Main installation logic
│   ├── updater.js   # Update management
│   ├── config-loader.js # YAML config parsing
│   ├── file-manager.js  # File operations
│   ├── ide-setup.js     # IDE-specific setup
│   └── prompts.js       # Interactive CLI prompts
├── config/          # Configuration files
│   └── install.config.yml # Installation profiles
├── templates/       # IDE template files
│   ├── cursor-rules.md     # Cursor template
│   ├── claude-commands.md  # Claude Code template
│   └── windsurf-rules.md   # Windsurf template
└── package.json     # NPM package configuration

Installation Profiles

  • minimal: IDE agents only (best for beginners)
  • core: IDE + Web agents
  • teams: Full team workflows
  • developer: Everything including creation tools

Usage

# Interactive installation
npx bmad-method install

# Direct profile installation
npx bmad-method install --profile=minimal

# Update existing installation
npx bmad-method update
```text

## Development

```bash
# Install dependencies
npm install

# Run tests
npm test

# Lint code
npm run lint