Install WordPress with WP-CLI
On a VPS with a web server, PHP and MySQL or MariaDB set up, WP-CLI installs WordPress in three commands. Run them in the site's web root, with your own names and passwords:
wp core download
wp config create --dbname=wordpress --dbuser=wpuser --dbpass=change-me
wp core install --url=https://example.com --title="My site" --admin_user=admin [email protected]Save the commands in a script, and every new site is set up the same way.
Notes
- Needs PHP, a web server and a database
- Same result every time
- Keep passwords out of the script
