1. Home
  2. Wp-cli
  3. Export single page

By combining the following flags you can export a single page from WordPress. First set the post type you want to export (page) then set the ID of the post, and finally limit the command to only fetch a single post. Skipping comments is optional.

#wordpress#cli
wp export --skip_comments --post_type=page --post__in=4995 --max_num_posts=1
copy
Full Wp-cli cheatsheet