self_update_cmd
self_update_cmd
¶
locus self-update — upgrade Locus to the latest release.
Runs the right upgrade command for how the user installed Locus:
- PyPI installs get
pip install --upgrade locus-assistant. - uv-tool installs get
uv tool upgrade locus-assistant. - Editable Git checkouts recover release-tag history, fast-forward, and rebuild Locus in the running environment. The inexact sync preserves packages previously installed through extras and dependency groups.
The detection logic is shared with the post-command "new version
available" hint in _version_check.py so both surfaces stay in sync.