auto upgrader from v3-> v4 and readme updates

This commit is contained in:
Brian Madison
2025-06-14 13:00:58 -05:00
parent 1e45d9cc14
commit 2902221069
6 changed files with 778 additions and 15 deletions

View File

@@ -2,6 +2,7 @@
const { Command } = require('commander');
const WebBuilder = require('./builders/web-builder');
const V3ToV4Upgrader = require('./upgraders/v3-to-v4-upgrader');
const path = require('path');
const program = new Command();
@@ -84,4 +85,19 @@ program
}
});
program
.command('upgrade')
.description('Upgrade a BMAD-METHOD V3 project to V4')
.option('-p, --project <path>', 'Path to V3 project (defaults to current directory)')
.option('--dry-run', 'Show what would be changed without making changes')
.option('--no-backup', 'Skip creating backup (not recommended)')
.action(async (options) => {
const upgrader = new V3ToV4Upgrader();
await upgrader.upgrade({
projectPath: options.project,
dryRun: options.dryRun,
backup: options.backup
});
});
program.parse();