Site icon Hip-Hop Website Design and Development

WP CLI not finding plugin commands

On a Ubuntu 20.04 Linode I have a WordPress installation. I deploy the website using https://github.com/Mixd/wp-deploy, a Capistrano deployment tool. When the website is deployed the folder structure is like this:

On my wp-config.php file are defined:

WP CLI is installed and it works with its own basic commands. The deployment is not a problem and it works using WP CLI commands.

The problem arises when I try to use WP CLI commands defined by plugins I have installed, like WP All Import. The error I get is:

Error: 'all-import' is not a registered wp command. See 'wp help' for available commands.

Running wp help it doesn’t list any plugin command. Instead, on my computer, it lists all the commands.

I guess is due to the different folder structure but I’m not able to find a solution. I need to be able to run for example wp all-import run ID to run imports from the command line since they’re way faster and I have 90k products to edit.