Created
December 3, 2018 19:25
-
-
Save vinaysyadav/64efc0d70de5fa9038138dcaf95e9b48 to your computer and use it in GitHub Desktop.
using wp-cli tfor new wordpress installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /usr/local/bin/wp core download | |
sudo /usr/local/bin/wp core config --dbhost=loalhost --dbname={database_name} --dbuser={user} --dbpass={password} | |
sudo /usr/local/bin/wp core install --url={domain} --title="{title}" --admin_name={login_username} --admin_password={login_pass} --admin_email={admin_password} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Though running these command from root is not recommend, but in case you have to run, then need to add --allow-root
sudo /usr/local/bin/wp core download --allow-root
sudo /usr/local/bin/wp core config --dbhost=loalhost --dbname={database_name} --dbuser={user} --dbpass={password} --allow-root
sudo /usr/local/bin/wp core install --url={domain} --title="{title}" --admin_name={login_username} --admin_password={login_pass} --admin_email={admin_password} --allow-root