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

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/myplugin.zip

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

Warning: Couldn't find '/assets/plugins/myplugin.zip' in the WordPress.org 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.

0

Leave a Comment