Get a post id by URL with WP-CLI

This need was quite easy. An huge list of URLs, similar from this export but that case is from another tool.
I did a specific package for WP-CLI that it is possible to use also with other tools like python because is possible to export as JSON.
There is a big readme with all the examples and also how to install it on GitHub with a screen:

Leave a Reply

Your email address will not be published. Required fields are marked *

Get a post id by URL with WP-CLI

time to read: <1 min
0