Shellscript: Install wordpress using wp-cli

Quickly install wordpress from the command line using WP-CLI

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 a more interactive approach, simply run the script without any arguments. The script will prompt you for the necessary details one by one.

    ./install_wp.sh

Copyright © 2024 norbertferia.com