Step-by-Step Guide: Creating a WordPress Website Locally with Valet and WP-CLI
Make sure Valet and WP CLI is installed in your system.
// Name your directorymkdir gb-starter && cd gb-starter
wp core download
/Change DbName, DbUser, DbPasswp core config --dbname=gb-starter --dbuser=root --dbpass= --dbhost=localhost
// Create Database as per above configuration.wp db create
// Set URL, Title, UserName, Pass, Emailwp core install --url=http://gb-starter.test --title="Guternberg Starterkit" --admin_user=admin --admin_password=admin [email protected]
// Check DB tables.wp db check
// Create Valet Linkvalet link
// To set WP_DEBUG and WP_DEBUG_LOG to true for Dev environmentwp config set WP_DEBUG true --raw
wp config set WP_DEBUG_LOG true --raw
// Open code in VSCodecode .
// Open Site in Browservalet open
remove directory (remove default plugin)rm -r DirName
Revmove Filerm -rf FileName
To add SSLvalet secure
To remove SSL:valet unsecure
Destroy the site:valet destroy
Add your first comment to this post