Installing plugins from wordpress.org catalog via WordPress Toolkit CLI
Please, implement a feature for installing plugins from wordpress.org catalog via WordPress Toolkit CLI
Use sets of plugins. You can installe them in CLI with
plesk ext wp-toolkit —sets -operation install
Alex G commented
I have raised a new Feature Request as this one is closed:
Alex G commented
Hi Plesk Staff,
The CLI command you have provided actually installs the set against an instance, however assuming that you meant the 'add-plugin' option, it requires a plugin to first be installed either in GUI or CLI using 'plesk ext wp-toolkit --plugins'.
The issue here is that the 'plesk ext wp-toolkit --plugins' command is currently unable to install plugins from wordpress.org in the same way that you can via the GUI.
As an example, look at this set which contains 2 plugins, one added using the command 'plesk ext wp-toolkit --plugins -operation add -source-url https://downloads.wordpress.org/plugin/w3-total-cache.0.9.7.zip'; and the other added using the GUI to search wordpress.org for Wordfence.
# plesk ext wp-toolkit --sets -operation info -set-id 9
ID Owner GUID Name
9 7c5241ec-7ab7-12e9-a537-006056813f14 Standard
ID Name Slug Source Version
11 W3 Total Cache w3-total-cache direct upload 0.9.7
13 Wordfence Security – Firewall & Malware Scan wordfence wordpress.org latest
As you can see, the one installed via CLI is version locked and does not count as being sourced from wordpress.org. The one installed via GUI will use the latest version from wordpress.org.
I believe this feature request is asking for the ability to add a plugin to the server so that it ends up like plugin 13 in the example, not plugin 11.