owpp init¶
owpp init <id> [--type event|filter|action|pipe] [--dir FOLDER]
Scaffolds the smallest plugin of a type in <plugins folder>/<id>/: plugin.yaml, function.py, tests/test_<id>.py and a README with Test and Deploy sections (and a CHANGELOG.md). It is what owpp create writes when every answer is the default. For every type, the scaffold passes both owpp check and owpp test.
Options¶
| Option | Meaning |
|---|---|
<id> |
The plugin id, and the folder name. |
--type |
event (default), filter, action or pipe. |
--dir FOLDER |
The plugins folder. Default $OWPP_PLUGINS_DIR, else ./plugins. |
Examples¶
owpp init hello
owpp init notes --type filter
Related¶
owpp create: the same, with a tool, skills, a page or code from git.- Getting started: from a scaffold to a deployed plugin.