Upgrade Guide
Standard Upgrade
-
Backup your data
Terminal window ./scripts/backup.sh --allSee Backup & Restore for details.
-
Pull the latest code
Terminal window cd breezegit pull origin main -
Update dependencies
Terminal window pnpm install -
Re-deploy
Terminal window ./scripts/prod/deploy.sh .env.prodThe deploy script handles:
- Running any pending database migrations
- Rebuilding Docker images with the latest code
- Rolling restart of services
- Health check verification
Checking the Current Version
# API versioncurl -s https://breeze.yourdomain.com/health | jq .version
# Agent versionbreeze-agent versionDatabase Migrations
Migrations run automatically during deployment. To run them manually:
export DATABASE_URL="postgresql://breeze:password@localhost:5432/breeze"pnpm db:migrateRolling Back
If an upgrade causes issues:
# Revert to the previous versiongit checkout <previous-tag>pnpm install./scripts/prod/deploy.sh .env.prodAgent Upgrades
Agents can be upgraded remotely from the dashboard or via command:
# From the API (sends upgrade command to agent via WebSocket)curl -X POST https://breeze.yourdomain.com/api/v1/devices/:id/commands \ -H "Authorization: Bearer $TOKEN" \ -d '{"action": "upgrade_agent", "payload": {"version": "0.2.0"}}'The agent downloads the new binary, verifies its signature, and performs a self-upgrade with automatic rollback on failure.