Files
BMAD-METHOD/tools/installer
Brian Madison 6e63bf2241 Fix npx execution issue with bmad CLI
- Added wrapper script (bmad.js) at root to handle npx execution context
- Fixed module resolution in tools/installer/bin/bmad.js for both local and npx contexts
- Updated package.json bin paths to use the wrapper script
- Handles temporary npx directories properly using execSync

This fixes the issue where `npx github:bmadcode/BMAD-METHOD#v4-alpha bmad`
was dropping into a shell instead of executing the command.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-13 09:01:52 -05:00
..
2025-06-13 09:01:52 -05:00
2025-06-12 22:38:24 -05:00
2025-06-12 22:38:24 -05:00
2025-06-12 22:38:24 -05:00
2025-06-12 22:38:24 -05:00
2025-06-12 22:38:24 -05:00
2025-06-12 22:38:24 -05:00

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

Development

# Install dependencies
npm install

# Run tests
npm test

# Lint code
npm run lint