• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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