As I outlined in my previous post on my WordPress development process, I’ve become quite fond of staying in the command line when creating new WordPress installs in MAMP.
I decided to combine the most common, repetitive steps of the process into one useful shell script that:
- Creates a new directory (and lets me name it)
- Downloads WordPress from GitHub and checks out whatever version I tell it to
- Creates a new database (and lets me name it) and gives the MySQL user proper permissions
- Generates my security keys and adds them to
wp-config.php
- Adds my database name, username, and password to
wp-config.php
- Opens up
wp-admin/install.php
and lets me complete installation
Check it out on GitHub, download for your own use, or fork it to customize it for your process.