WordPress CLI (wp-cli)

Softaculous ships the wp-cli with the WordPress package for all the panels

Use the following command to invoke wp-cli :

/var/softaculous/wp/wp-cli --path=/path/to/wordpress/installation 

Get WordPress Info

/var/softaculous/wp/wp-cli --info --path=/home/user/public_html 

Install a Plugin

/var/softaculous/wp/wp-cli plugin install loginizer --activate --path=/home/user/public_html 

More Commands

You can use any wp-cli command as documented here.

Notes :

  • Always run the CLI as a user. Do not run as root
  • –path parameter is important as it defines which WordPress installation to make the changes to. If you do not want to pass the –path parameter you can cd to the WordPress installation folder and then execute the commands.
  • WordPress script should be enabled from Softaculous admin panel to be able to use wp-cli
Was this helpful to you?