Upgrading & Uninstalling
Inertia stores only its module configuration in ProcessWire and creates no custom database tables.
Upgrading Inertia
Section titled “Upgrading Inertia”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-inertiaphp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Inertia), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Inertia/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstall Steps
Section titled “Uninstall Steps”-
Uninstall any dependent modules
Open Modules > Site and uninstall
React(and any modules depending onReact) if they are installed. -
Uninstall Inertia
Open Modules > Configure > Inertia, expand the Uninstall section at the bottom, check Uninstall, and click Submit.
Or run the CLI command:
Terminal window php vendor/bin/wire module:uninstall InertiaInertia::___uninstall()clears module-managed caches and removes Inertia hooks cleanly. -
Remove the Composer package (optional)
Terminal window composer remove trk/processwire-inertia -
Clean up project starter files (optional)
Inertia never deletes files you own inside
site/. If you no longer need them, remove these files manually:site/templates/_inertia.phpsite/templates/assets/js/inertia.tsandsite/templates/assets/js/types/inertia.d.ts- Custom providers inside
site/inertia/ - Any
use InteractWithInertia;references insidesite/classes/DefaultPage.php