I'm having trouble setting the page template with wp-cli. According to this post, How do I set and list page_template with wpcli, it looks like:
wp post create --post_type=page --page_template='template-name.php'
should work, but it only returns "Error: The page template is invalid." Any thoughts? I've tried creating the page first and then updating using wp post update 14 --page_template='template-name.php' and that says "Success: Updated post 14." but nothing is changed when I look at the page in the Wordpress admin.
Thanks for help on this. Today is my first day working with wp-cli and it is incredible. I wish I would have come across this a long time ago.