Updating
How to update Shiva and its modules safely.
Update the CLI First
Always update the CLI before updating the server:
npm update -g @shiva-fw/cli
shiva --versionCheck for Updates
shiva update --checkThis shows which modules have available updates and whether any are breaking changes.
Update All Modules
shiva updateThis updates all modules to the latest compatible version (respecting semver ranges in your shiva.manifest).
Update a Specific Module
shiva update shiva-player
shiva update shiva-economy@2.1.0 # pin to a specific versionRun Migrations After Updating
Always run migrations after updating:
shiva migrateMigrations are additive and non-destructive by default. A migration that drops columns requires an explicit --destructive flag.
Breaking Changes
Breaking changes are documented in each module's CHANGELOG.md and flagged with ⚠️ in shiva update --check. Before applying a breaking update:
- Read the changelog
- Update your module's config if needed
- Test in a staging environment
- Apply the update and run
shiva migrate
Rolling Back
To roll back a module to a previous version:
shiva update shiva-player@2.0.1
shiva migrate --rollback # rolls back the last migration batchAutomated Updates
For production servers, consider using shiva update --auto in a scheduled task to stay on the latest patch versions automatically.