DevinWalker / wp-rollback

Rollback any WordPress.org plugin or theme to a previous (or newer) version.
https://wprollback.com
81 stars 22 forks source link

wp-cli support #26

Closed COLABORATI closed 7 years ago

COLABORATI commented 8 years ago

Hi, does this plugin provide support for wp-cli? If not, then this should be a feature request. Thanks!

DevinWalker commented 8 years ago

WP cli already has a rollback doesn't it?

mathetos commented 8 years ago

@shawnhooper Does WP CLI already have a rollback function built-in?

shawnhooper commented 8 years ago

@mathetos Yes it does.

For WordPress Core, you can run wp core download --version=3.8 to download version 3.8, or example.

For themes, run wp theme install --version=X or wp theme update --version=X to install version X.

For plugins, run wp plugin install --version=X or wp plugin update --version=X to install version X.

It doesn't look like you can get a list of available version numbers through CLI. You could retrieve these from the corresponding WordPress.org pages for the plugin or theme.

mathetos commented 8 years ago

So, we could feasibly extend WP CLI in Rollback and do something like wp rollback plugin versions and get a list of available versions, then wp plugin install --version=X so the only utility with Rollback would be adding the ability to see all the plugin versions.

DevinWalker commented 7 years ago

I'd rather support WP-CLI and add the ability to list past plugin versions there than include our own CLI. Closing this one out.