wp-cli / extension-command

Manages plugins and themes, including installs, activations, and updates.
MIT License
90 stars 79 forks source link

[ wp theme update ] - update from zip file ( like install ) #409

Closed riccardodicurti closed 9 months ago

riccardodicurti commented 9 months ago

I saw that it is possible to install a theme from a zip file but cannot update it.

wp theme install http://s3.amazonaws.com/bucketname/my-theme.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef

I would like to ask if it would be possible to add this feature, the themes I need to update I have them as zip file and they are not available in repository, also being active or parent themes I cannot delete to install them again.

riccardodicurti commented 9 months ago

I found this workaround: https://github.com/wp-cli/wp-cli/issues/3675#issuecomment-268252291

However, I think it is more correct to add the zip to the update

danielbachhuber commented 9 months ago

Thanks for the report, @riccardodicurti

wp theme update uses the WordPress updater, sowp theme install is the most appropriate command to forcefully install a ZIP