Wp-cli: Update plugin from zip file

Created on 19 Jan 2016  Â·  3Comments  Â·  Source: wp-cli/wp-cli

Problem

Commercial 3rd party plugins are distributed through zip files and are not available in the standard WordPress plugin directory. Attempting to upgrade such a plugin will fail and produce the following warning message:

Warning: Update package not available.

Proposal

Add _zip_ (and ideally _url_) parameter support to the wp plugin update command the same way it is possible with wp plugin install:

…
A plugin slug, the path to a local zip file, or URL to a remote zip file.

Most helpful comment

No need for wp plugin update. You can run wp plugin install --force <plugin|zip|url> to achieve the same effect.

All 3 comments

No need for wp plugin update. You can run wp plugin install --force <plugin|zip|url> to achieve the same effect.

I tried that, but it failed. Then I removed the plugin and ran a regular install and it worked. So clearly something is different. Should I open a new bug report for that?

I tried that, but it failed. Then I removed the plugin and ran a regular install and it worked. So clearly something is different. Should I open a new bug report for that?

Can you share the full output from the procedure here?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dhalucario picture dhalucario  Â·  3Comments

fwaggle picture fwaggle  Â·  3Comments

ernilambar picture ernilambar  Â·  3Comments

killown picture killown  Â·  3Comments

schlessera picture schlessera  Â·  4Comments