ideas icon indicating copy to clipboard operation
ideas copied to clipboard

`wp post revisions`

Open miya0001 opened this issue 8 years ago • 2 comments

This command is to manage revisions for the specific post. I think that a large number of people need it for now... 😓

Examples:

Lists all revisions for post_id=221

$ wp post revisions 221 --format=json

Restores revision from 233.

$ wp post revisions 221 --restore=233

Displays diff.

$ wp post revisions 221 --diff=233:255

Or

$ wp post revisions 221 --diff=233

miya0001 avatar Feb 09 '17 21:02 miya0001

Restoring and displaying diffs would be pretty interesting.

danielbachhuber avatar Feb 09 '17 21:02 danielbachhuber

Another implementation of revisions https://github.com/trepmal/wp-revisions-cli

danielbachhuber avatar Oct 05 '23 15:10 danielbachhuber