Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Control CLI Commands #2

Open
goncaloasimoes opened this issue Feb 22, 2023 · 0 comments
Open

Version Control CLI Commands #2

goncaloasimoes opened this issue Feb 22, 2023 · 0 comments
Assignees

Comments

@goncaloasimoes
Copy link
Collaborator

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant