| 526 | } |
| 527 | |
| 528 | function printHelp() { |
| 529 | console.log(` |
| 530 | AutoForge v${VERSION} |
| 531 | Autonomous coding agent with web UI |
| 532 | |
| 533 | Usage: |
| 534 | autoforge Start the server (default) |
| 535 | autoforge config Open ~/.autoforge/.env in $EDITOR |
| 536 | autoforge config --path Print config file path |
| 537 | autoforge config --show Show effective configuration |
| 538 | |
| 539 | Options: |
| 540 | --port PORT Custom port (default: auto from 8888) |
| 541 | --host HOST Custom host (default: 127.0.0.1) |
| 542 | --no-browser Don't auto-open browser |
| 543 | --repair Delete and recreate virtual environment |
| 544 | --dev Development mode (requires cloned repo) |
| 545 | --version Print version |
| 546 | --help Show this help |
| 547 | `); |
| 548 | } |
| 549 | |
| 550 | function handleConfig(args) { |
| 551 | ensureEnvFile(); |