• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Can I add additional packages to wp-cli?

wwwAndries

New Pleskian
Hello,

How can I add additional packages to wp-cli which must be available for all users?

I've tried:
1. /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/wp package install wp-cli/doctor-command --allow-root
Error: Unable to locate configuration path {"err_code":40002,"err_message":"Unable to locate configuration path"}

2. plesk ext wp-toolkit --wp-cli package install wp-cli/doctor-command --allow-root
Error: Some of required options were missed. You must specify either the 'instance-id' option, or both the 'main-domain-id' and the 'path' options. exit status 3

PHP binary: /usr/bin/php
PHP version: 7.0.29
php.ini used: /etc/php.ini
WP-CLI root dir: /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli
WP-CLI vendor dir: /usr/local/psa/admin/plib/modules/wp-toolkit/vendor
WP_CLI phar path:
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config: /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/cache-command/wp-cli.yml
WP-CLI version: 1.4.0
 
Hello,

WordPress Toolkit include special patched version of WP-CLI. Also, versions of several critical packages are fixed to ensure stability of toolkit itself, because it operate with WordPress instances via WP-CLI. So patching of WP-CLI or installing of additional packages are depricated and unsupported, because it can brake down WordPress Toolkit functionality.

But anyway, thank you for feedback! We are thinking on delivering also official WP-CLI build to make it public and extendable, but for now this is just an idea for further implementation. You can make a suggestion at Feature Suggestions: Top (1973 ideas) – Your Ideas for Plesk.
 
Back
Top