• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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