• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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