I’ve inherited a strange site, where the posts in the backend are built not in the WP editor, but in a series of ACF repeater blocks. I need to format / migrate these posts in a way that they can be parsed by the block editor. There are thousands of posts so this process really has to be programmatic.
I know the CLI lets me access the value of the content field in a post:
wp post get 123 --field=content
but this doesn’t really help me, because I need to results of a post object stitching all the ACF meta data. How can I get the CLI to output the same post content that appears on the frontend?