Getting lists of content types is very easy through Terminus. Here are two examples of Terminus / WP CLI commands.
type the following command making sure to replace {date} with the date you're pulling this list:
terminus remote:wp cornell-alumni.live -- post list --post_type=page --format=csv --post_status=publish --fields=url,post_title,page_template > alumni-live-pages-{date}.csv
Note that the terminus command line already has the wp prefix. The double dash (–) shows the end of the Terminus command and the beginning of the WP CLI command. We don't need to repeat the wp in the command. |
The same command for our giving live site is:
terminus remote:wp cornell-giving.live -- post list --post_type=page --format=csv --post_status=publish --fields=url,post_title,page_template > giving-live-pages-{date}.csv