Plugin-focused scaffolding, build, smoke-test, and diagnostics commands for Volt backend plugins.
Create a new backend plugin project scaffold.
volt plugin init my-pluginCreates a volt-plugin.json, src/plugin.ts, package.json, and tsconfig.json scaffold that can be bundled immediately with volt plugin build.
Bundle the plugin backend entry declared by volt-plugin.json.
volt plugin buildBehavior:
- Loads and validates
volt-plugin.json - Resolves the plugin source entry (
src/plugin.ts,src/plugin.js,plugin.ts, orplugin.js) - Bundles the backend to the configured manifest output, typically
dist/plugin.js - Treats
volt:*imports as external runtime modules
Run a smoke test against the real volt-plugin-host binary.
volt plugin testBehavior:
- Builds the plugin bundle
- Starts the real plugin host process with the plugin loaded
- Sends
activate - Invokes each command listed in
contributes.commands - Sends
deactivateand tears down the host cleanly
Validate plugin schema and compatibility with the nearest Volt app, when present.
volt plugin doctorChecks:
- Manifest presence, JSON parsing, and schema validity
- Plugin source entry existence and extension support
- Bundle output path validity and current build presence
apiVersioncompatibility with the current Volt CLI/runtimeengine.voltsemver compatibility- Parent app permission and grant compatibility, when a Volt app config is found