Created
March 8, 2021 16:49
-
-
Save tawhidulIKhan/d3b148c7afb81b73e43af2cc71618da1 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# Shell Boilerplate | |
path="$1.test" | |
dbname="db_$1" | |
dbuser="root" | |
dbpass="secret" | |
url="localhost/$1.test"; | |
title="Title" | |
admin_user="admin" | |
admin_password="secret" | |
admin_email="[email protected]" | |
wp core download --path=$path | |
cd $path | |
wp config create --dbname=$dbname --dbuser=$dbuser --dbpass=$dbpass | |
wp db create | |
wp core install --url=$url --title=$title --admin_user=$admin_user --admin_password=$admin_password --admin_email=$admin_email | |
$SHELL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment