extension-command
extension-command copied to clipboard
improve plugin update usage in restricted environments
I have a restricted bash and php environment where curl is not available. Maybe therefore I cannot update plugins and get the following error: "cURL error 77: "
But wget is available in that environment. It would be nice if wp-cli could be configured to use wget insteat of curl. That would enable me to use that tool in a shared webspace environment to automate my update process and save me tons of hours.
Thanks for all your efforts in advance.
In debug-Mode I see the following error:
Debug (bootstrap): Running command: plugin update (0.687s)
Anschalten des Wartungsmodus …
Herunterladen der Aktualisierung von http://downloads.wordpress.org/plugin/ninjafirewall.4.5.1.zip...
Warning: Download fehlgeschlagen. "cURL error 77: "
Abschalten des Wartungsmodus …
My command to update the plugin
php -d extension=phar.so -d extension=json.so wp.phar plugin update --all --debug --path=...
used wp-cli version: 2.6.0 used php version: 7.4 used wordpress version: 5.9.2