Skip to content

wp post revisions聽#547

Closed
Closed

Description

@miya0001

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

Activity

  1. danielbachhuber commented on Feb 9, 2017

    @danielbachhuber
    Member

    Restoring and displaying diffs would be pretty interesting.

  2. danielbachhuber commented on Oct 5, 2023

    @danielbachhuber
    Member

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

  3. transferred this issue fromwp-cli/ideason Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

command:postRelated to 'post' command

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions