Install Core Plugin
Reinstall the built-in core plugin. This endpoint is useful for:
- Resetting core entities/schemas to default
- Applying updates after engine upgrade
- Development and testing
The core plugin contains the base entities, schemas, and configurations required for the BSH Engine to function properly.
Endpoint
POST /api/plugins/install/core
Content-Type: multipart/form-dataNo request body is required for this endpoint.
Example Request
cURL
curl -X POST "http://localhost:7071/api/plugins/install/core"Response
Success Response (200 OK)
{
"status": 200,
"message": "Plugin installed",
"data": {
"history": 12346,
"pluginId": "core",
"pluginName": "BSH Core Plugin",
"totalFiles": 25,
"successCount": 25,
"failedCount": 0
}
}Configuration
The core plugin installation behavior can be configured via bshconfig.json:
{
"plugin": {
"coreInstallMode": "Once"
}
}| Setting | Values | Description |
|---|---|---|
coreInstallMode | Once | Core plugin installed only on first startup |
Always | Core plugin reinstalled on every startup |
See Also
- Configuration Guide - Engine configuration options
- Plugin Structure - Understanding plugin structure