Page 1 of 1

Enable plugins via command line?

Posted: Thu Nov 28, 2019 1:13 am
by boredazfcuk
Hey, everyone.

Is it possible to install and enable plugins from the command line?

I have added the plugins I want to enabled_plugins in web.conf and then fired up deluged and deluge-web, but when I look at the webui's plugin configuration, they are not checked.

If I check the box manually, a folder gets created in my Python egg cache folder. How do I replicate that from the command line?

I've tried easy_install but that seems to install the eggs to /usr/lib/python3.7/site-packages/* and the contents of the installed folders differ to what gets created in the egg cache.

Any suggestions?

Thanks.

Re: Enable plugins via command line?

Posted: Thu Nov 28, 2019 2:02 am
by mhertz
'deluge-console plugin help' is your friend. Move plugin egg file into 'plugins' dir of deluge profile dir and enable it with 'deluge-console plugin -e pluginname'.

Might need to rename plugin name to match installed python version if different.

Remember not all plugins are supported for deluge v2.0.x.

Re: Enable plugins via command line?

Posted: Thu Nov 28, 2019 10:45 am
by boredazfcuk
Perfect. I now enable my preferred plugins by running:

Code: Select all

/usr/bin/deluge-console -U localclient -P "$(grep ^localclient ${CONFIGDIR}/auth | cut -d: -f2)" plugin --enable AutoAdd Blocklist Execute Label Scheduler
in my docker container's start-up script so I don't have to re-enable them every time I destroy/create my container :D

Thanks for the pointer