• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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