• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Question How to use wp cli in Plesk?

smsco

New Pleskian
Server operating system version
7.9
Plesk version and microupdate number
18.0.45
Hello
I read articles about wp cli but none of them answered for me.
I want to enter the following command, but it gives an error:

wp edd v30_migration
 
Try to execute the
Code:
plesk ext wp-toolkit --wp-cli -instance-id INSTANCE_ID -- edd v30_migration
command
 
Try to execute the
Code:
plesk ext wp-toolkit --wp-cli -instance-id INSTANCE_ID -- edd v30_migration
command
[2022-07-20 08:05:53.463] 29536:62d7b76170d8f ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/filemng' 'site.com_zkado5xmjjm' 'exec' '/var/www/vhosts/site.com/httpdocs' 'timeout' '60' '/opt/plesk/php/8.0/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=on' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=341' '-d' 'max_execution_time=60' '-c' '/var/www/vhosts/system/site.com/etc/php.ini' '/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php' '--path=/var/www/vhosts/site.com/httpdocs' '--no-color' 'edd' 'v30_migration'] with exit code [1]
Error: 'edd' is not a registered wp command. See 'wp help' for available commands.
Did you mean 'db'?
 
Back
Top