• 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

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