Quickly install wordpress from the command line using WP-CLI

Used as part of the “Standardizing WordPress Project Setup with Automation” case study.

View in Github

How to Use the Script

You can run the script in two ways:

  1. Provide Parameters Directly: If you already know all the details, you can pass them as arguments when running the script. For example:
    ./install_wp.sh mysite mydb myuser mypass http://mysite.com "My Site" admin adminpass [email protected]
  2. Interactive Mode: If you prefer an interactive approach, run the script without arguments. The script will prompt you for the necessary details one by one.
    ./install_wp.sh