Update the permalink for one post via wp cli

I’m using WP-CLI to import articles from a non-WordPress system. The legacy system has a custom URL defined for every post. I’d like to be able to set the permalink on the posts I’m importing base on the custom URL defined in the legacy system. I don’t need to set the entire permalink, just being able to set the suffix, as is supported in the WP admin UI, would be sufficient. But there doesn’t seem to be a way to change the permalink for a specific post using WP-CLI. Am I missing something?

Read more here:: Update the permalink for one post via wp cli

Leave a Reply

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