Automatically create WP Pages with wp-cli/bash

We have been doing a lot of WordPress development recently (2-3 sites/apps/projects / week) and one thing we can’t stand is manually creating pages to fill out a site. You know the types: About us, contact etc.

Its really painful, especially since you need to do a couple of page reloads to create a page in wordpress.

Well we decided to make a quick little bash script that hooks into wp-cli to automate this process by prompting you for a list of page names. The script is below:

https://gist.github.com/gubbigubbi/8c63ab1ca6c7afbe990a

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top