feat(doctor): offer update first

This commit is contained in:
Peter Steinberger
2026-01-10 21:14:30 +01:00
parent d772ff06c8
commit 3389231ecb
8 changed files with 242 additions and 12 deletions

View File

@@ -141,7 +141,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
);
defaultRuntime.log(
theme.muted(
"Examples: `npm i -g clawdbot@latest` or `pnpm add -g clawdbot@latest`",
"Examples: `npm i -g clawdbot@latest`, `pnpm add -g clawdbot@latest`, or `bun add -g clawdbot@latest`",
),
);
}
@@ -206,7 +206,7 @@ Examples:
Notes:
- For git installs: fetches, rebases, installs deps, builds, and runs doctor
- For npm installs: use npm/pnpm to reinstall (see docs/install/updating.md)
- For global installs: use npm/pnpm/bun to reinstall (see docs/install/updating.md)
- Skips update if the working directory has uncommitted changes
${theme.muted("Docs:")} ${formatDocsLink("/updating", "docs.clawd.bot/updating")}`,