Skip to content

feat(cli): add update command for self-updating allagents#12

Merged
christso merged 2 commits intomainfrom
feat/update-command
Jan 27, 2026
Merged

feat(cli): add update command for self-updating allagents#12
christso merged 2 commits intomainfrom
feat/update-command

Conversation

@christso
Copy link
Copy Markdown
Contributor

Summary

  • Add allagents update command that updates the CLI to the latest version
  • Auto-detects package manager (npm vs bun) by checking if .bun is in the script path
  • Works cross-platform (Windows and Linux/macOS)
  • Supports --npm and --bun flags to force a specific package manager

Test plan

  • allagents update --help shows correct usage
  • Unit tests for package manager detection logic pass
  • TypeScript type checking passes
  • Linting passes

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 27, 2026

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 562c071
Status:⚡️  Build in progress...

View logs

Add `allagents update` command that updates the CLI to the latest version.
Automatically detects whether installed via npm or bun by checking the
script path for `.bun`. Supports --npm and --bun flags to force a specific
package manager.
- Show "before → after" version after update completes
- Export detectPackageManagerFromPath for proper test isolation
- Tests now import the actual function instead of duplicating logic
@christso christso force-pushed the feat/update-command branch from c645e1e to 562c071 Compare January 27, 2026 01:17
@christso christso merged commit 386f17b into main Jan 27, 2026
1 check was pending
@christso christso deleted the feat/update-command branch January 27, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant