feat(cli): add onboard alias for setup wizard

This commit is contained in:
William Valentin
2026-02-16 18:30:17 -08:00
parent 10aa224961
commit 5b5fbb887c
5 changed files with 33 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { Command } from 'commander';
import { getConfigPath } from './shared.js';
import { runSetup } from './setup.js';
export function registerOnboardCommand(program: Command): void {
program
.command('onboard')
.description('Run guided onboarding (alias for setup wizard)')
.option('-c, --config <path>', 'Config file path')
.action(async (opts: { config?: string }) => {
const configPath = opts.config ?? getConfigPath();
await runSetup(configPath);
});
}