Skip to main content

plugins.add

Adds a local plugin, either a directory with plugin.lua or a zip, and loads it.

info

A plugin that fails to load is still added.

Request​

{
"path": "/tmp/plugin.lua",
"config": "<a Lua chunk that is passed to the init function of the plugin>"
}

Response​

{
"id": 7
}

Errors​

CodeReason
-2Plugin path must be absolute
-3Plugin path does not exist
-4Plugin path is used by another plugin