Can’t install local plugin (zip) with wp-cli

I’m using WP-CLI with Docker, everything works fine but I can’t seem to find a way to install plugins that are on my local drive.

I’m following the instructions, and do :

wp plugin install ../assets/plugins/

I’m expecting WP-CLI to install the plugin, instead I get a :

Warning: Couldn’t find ‘/assets/plugins/’ in the plugin directory.
Error: No plugins installed.

It seems WP-CLI is treating my zip path as a plugin slug from the plugin directory.

I tried quotes, absolute path, running as root, all with the same result.

Read more here:: Can’t install local plugin (zip) with wp-cli

Leave a Reply

Your email address will not be published. Required fields are marked *