Enable plugins via command line?

General support for problems installing or using Deluge
Post Reply
boredazfcuk
Member
Member
Posts: 22
Joined: Sun Jun 16, 2019 10:08 pm

Enable plugins via command line?

Post 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.
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Enable plugins via command line?

Post 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.
boredazfcuk
Member
Member
Posts: 22
Joined: Sun Jun 16, 2019 10:08 pm

Re: Enable plugins via command line?

Post 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
Post Reply