Runtime Management¶
Manage the operational state of your plugins without restarting the entire application.
Controlling Plugin State¶
The plugin runtime command group provides direct control over the loading mechanism.
Load a Plugin¶
If a plugin is installed but not active:
Unload a Plugin¶
To temporarily disable a plugin and free up resources:
Reload a Plugin¶
Useful for applying updates or configuration changes:
Hot Reloading
xcore supports automatic hot-reloading. Configure the interval in integration.yaml to enable it:
Direct Actions¶
Call a Plugin Action¶
You can trigger a specific action within a plugin directly from the CLI, passing a JSON payload if required.
Monitoring Runtime Status¶
To see which plugins are currently loaded and their operational state (e.g., running, initializing):
Global Reload¶
To reload all active plugins at once:
State Persistence
When a plugin is reloaded, its in-memory state is lost. Ensure your plugins implement proper state persistence (e.g., via the cache service) if needed.