VoxelSwarm updates ship as a full replacement. No in-app update mechanism — you update via FTP, SSH, or Git pull.
cd /path/to/VoxelSwarm
git pull origin main
php scripts/migrate.php- Download the new release from GitHub
- Extract over your existing installation
- Run migrations:
php scripts/migrate.php| Preserved | Replaced |
|---|---|
.env |
src/ (application code) |
storage/swarm.db (database) |
views/ (templates) |
storage/instances/ (provisioned sites) |
build/ (compiled assets) |
storage/logs/ |
migrations/ |
library/ (centralized images) |
scripts/ |
template/voxelsite/ (your prepared template) |
vendor/ (if using ZIP method) |
php scripts/migrate.php tracks which migrations have run in a _migrations table. It is idempotent — safe to run multiple times. It will only execute new migrations.
Updating VoxelSwarm does not update the VoxelSite template or existing instances. To update the template for future instances:
php scripts/prepare-template.php /path/to/new-voxelsite.zipExisting instances update independently via VoxelSite's own update system.