Skip to main content

Synopsis

profclaw update [version] [flags]

Description

update checks for a newer version of profClaw and applies the update. It respects the original installation method (npm or binary) and runs the appropriate update command. After updating, it validates the new version with a health check.

Arguments

version
string
Specific version to install (e.g., 2.1.0). Omit to install the latest stable release.

Flags

--check
boolean
Check for updates without installing. Prints the current version and the latest available version.
--pre
boolean
Include pre-release versions (alpha, beta, rc) when looking for updates.
--yes
boolean
Skip the confirmation prompt before updating.
--restart
boolean
Restart the daemon after a successful update (if running as a system service).

Examples

profclaw update --check

Manual Update Methods

npm install -g profclaw@latest

Migration Notes

Before updating across major versions, run:
profclaw backup create          # Back up data first
profclaw update                 # Apply update
profclaw doctor                 # Verify health
Check the changelog for breaking changes between major versions.