Skip to content

Version Control CLI Commands #2

@azathcat

Description

@azathcat

The following are the CLI commands necessary for version information and control.

The post version CLI prefix will be post-version

Commands

Versions Information

wp post-version versions [post_id] [-v] [--verbose]

Lists the versions of a post.

The basic output will be a list with the number and label of the versions. The verbose output will be more detailed with information such as the revision associated with the version, the date of the version/revision, and other relevant information.

Hide Version

wp post-version hide [post_id] [version_number]

Hides a version of a post.

Unhide Version

wp post-version unhide [post_id] [version_number]

Unhides a version of a post.

Delete Version

wp post-version delete [post_id] [version_number]

Deletes a post's version.

Considerations

  • Since we have a command for listing all the versions of a post, it might be useful to have a command to see the information of a single version.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions