wp post revision <command>

Manages post revisions.

In this article

Note: This command is not part of a stable WP-CLI release yet. To use it now, switch to the nightly build with wp cli update --nightly. If you installed the command as a separate package, updating that package may be enough.

Examples

# Restore a post revision
$ wp post revision restore 123
Success: Restored revision 123.

# Show diff between two revisions
$ wp post revision diff 123 456

Subcommands

NameDescription
wp post revision diff

Shows the difference between two revisions.

wp post revision prune

Deletes old post revisions.

wp post revision restore

Restores a post revision.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.