snowclaw upgrade

Update the SnowClaw CLI itself to the latest version. Does a git pull on your local SnowClaw checkout and reinstalls via pipx.

Not the same as snowclaw update. update bumps the OpenClaw base image your project builds against. upgrade bumps the SnowClaw CLI you have installed.

Usage

snowclaw upgrade

What it does

  1. Locates the SnowClaw repo (walks up from the installed CLI file to find the .git dir — usually ~/.snowclaw).
  2. Warns if the repo has uncommitted changes (it'll still proceed, but you should know).
  3. Runs git pull --ff-only to fetch the latest main.
  4. If already up to date, exits with the current version.
  5. Otherwise, reinstalls via pipx install --force -e <repo>.
  6. Prints the old → new version diff.

When to run it

  • Periodically, to pick up new CLI features, bug fixes, and template changes.
  • After you see a feature referenced in the docs that your local CLI doesn't have.
  • Before running snowclaw setup --force when you want the latest scaffolded templates.

Alternative: re-run the install script

The install script is also idempotent — running the same curl | bash one-liner again does the same thing as snowclaw upgrade. Either works; upgrade is just the one-command shortcut.