Updating
Before upgrading
Section titled “Before upgrading”- Back up your data:
snippbot reset --list-backups— or manually copy~/.snippbot/ - Check the changelog for breaking changes
- Stop the daemon before upgrading
Upgrade
Section titled “Upgrade”# Stop the daemonsnippbot stop
# Upgradepip install --upgrade snippbot
# Restartsnippbot startsnippbot stop
# Pull latest changesgit pull origin main
# Reinstall packagessource .venv/bin/activatepip install -e packages/core packages/local packages/cli
# Rebuild UIcd packages/ui && pnpm install && pnpm build && cd ../..
snippbot start# Pull latest imagedocker compose pull
# Recreate containersdocker compose up -d
# View logs to verify startupdocker compose logs -f snippbotVerify the upgrade
Section titled “Verify the upgrade”snippbot --versionsnippbot statuscurl http://localhost:18781/healthsnippbot doctorDatabase migrations
Section titled “Database migrations”Snippbot applies database migrations automatically on startup. If a migration fails:
# Check logs for migration errorstail -50 ~/.snippbot/logs/daemon.log | grep -i migrat
# Restore from pre-upgrade backup if neededsnippbot reset --list-backupssnippbot reset --restore <backup-name>Rollback
Section titled “Rollback”If the new version has a critical bug, roll back:
# pip — install specific versionpip install snippbot==0.4.1
# From source — check out previous taggit checkout v0.4.1pip install -e packages/core packages/local packages/cliAlways restore from a pre-upgrade backup when rolling back to avoid schema mismatches:
snippbot stopsnippbot reset --restore pre-upgrade-<timestamp>snippbot start