upgrade
snippbot upgrade
Section titled “snippbot upgrade”Upgrade Snippbot to the latest release published on PyPI (or a version you pin),
without having to remember the right pipx / pip incantation.
snippbot upgrade # Upgrade to the latest version on PyPIsnippbot upgrade --check # Just report if a newer version existssnippbot upgrade --version 0.5.2 # Pin a specific target versionsnippbot upgrade --yes # Skip the confirmation prompt| Option | Default | Description |
|---|---|---|
--check | off | Report installed vs. latest version and whether an update is available. Installs nothing. |
--version <ver> | latest on PyPI | Pin a specific target version (e.g. for a rollback). |
--yes / -y | off | Skip the confirmation prompt (script-friendly). |
What it does
Section titled “What it does”- Reads the latest version from PyPI’s JSON API
(
https://pypi.org/pypi/snippbot/json). This API is authoritative and never stale. - If you are already up to date (and didn’t pin
--version), it exits without doing anything. - Otherwise it stops the daemon first (so files aren’t locked mid-write).
- Detects how Snippbot was installed (pipx vs. a pip virtualenv) and runs the
right installer, always pinning the exact target version and passing
--no-cache-dir.
After upgrading
Section titled “After upgrading”The command can’t re-read the new version from inside the still-running CLI process, so verify and restart manually:
snippbot --versionsnippbot startRollback
Section titled “Rollback”Pin an older version to roll back:
snippbot upgrade --version 0.4.1 --yesSee Updating for backup and database-migration guidance around upgrades and rollbacks.