• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

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