Skip to content

Instantly share code, notes, and snippets.

@tawhidulIKhan
Created March 8, 2021 16:49
Show Gist options
  • Save tawhidulIKhan/d3b148c7afb81b73e43af2cc71618da1 to your computer and use it in GitHub Desktop.
Save tawhidulIKhan/d3b148c7afb81b73e43af2cc71618da1 to your computer and use it in GitHub Desktop.
#!/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