Quickly install wordpress from the command line using WP-CLI
Used as part of the “Standardizing WordPress Project Setup with Automation” case study.
How to Use the Script
You can run the script in two ways:
- 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] - 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