Local Plugin Development¶
The plugin local command group is designed to accelerate the development of new features.
Scaffolding a New Plugin¶
Create a new plugin structure with one command. The improved scaffold command supports several flags to pre-configure your code.
| Rich Scaffolding | |
|---|---|
Scaffold Flags:¶
--mode:trusted(default) orsandboxed.--db: Generatesmodels.pyandschemas.py.--cache: Injects the cache service into the plugin.--scheduler: Injects the scheduler service.--no-routes: Skips generating FastAPI router code.
Linking for Development¶
Instead of installing a plugin, you can create a symbolic link from your development directory to the project's plugin folder. This allows you to see changes instantly.
| Link Plugin | |
|---|---|
Unlinking¶
When you're done developing or want to switch to a production version:
Listing Plugins¶
The local list command shows all plugins and identifies whether they are installed (physical files) or symlinked (local development).
Hot Reload
Ensure debug: true and a valid interval are set in your integration.yaml for the best development experience.