Compare commits

...

2 Commits

Author SHA1 Message Date
3d0d40ab1a Add upgrade command to CLI 2026-03-08 22:23:37 -07:00
ea1c648c52 0.0.20 2026-03-08 22:22:35 -07:00
2 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@because/sandlot", "name": "@because/sandlot",
"version": "0.0.19", "version": "0.0.20",
"description": "Sandboxed, branch-based development with Claude", "description": "Sandboxed, branch-based development with Claude",
"type": "module", "type": "module",
"bin": { "bin": {

View File

@ -183,6 +183,18 @@ program
registerVmCommands(program) registerVmCommands(program)
program
.command("upgrade")
.description("Upgrade sandlot to the latest version")
.action(async () => {
const result = await Bun.spawn(["bun", "install", "-g", "@because/sandlot@latest"], {
stdin: "inherit",
stdout: "inherit",
stderr: "inherit",
}).exited
process.exit(result)
})
program program
.command("version") .command("version")
.description("Print the version number") .description("Print the version number")