• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

How to execute wp-cli normally without toolkit?

I want to access `wp media` command but it's not avaialbe when using `plesk ext wp-toolkit --wp-cli -instance-`.
I tried install `wp` cli but I don't want to execute `wp` commands as root user.
I tried `su {username}` but it doesn't switch the user.

Please help.
 
We use this:

Code:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
/opt/plesk/php/7.4/bin/php wp-cli.phar --info
 
Back
Top