Skip to content

Instantly share code, notes, and snippets.

@ihsanberahim
Last active February 17, 2018 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihsanberahim/9b0cfccf4e6e673bac3d9fe98be50895 to your computer and use it in GitHub Desktop.
Save ihsanberahim/9b0cfccf4e6e673bac3d9fe98be50895 to your computer and use it in GitHub Desktop.

Start Fresh Wordpress using WP-CLI and Valet

Prequisite

Notes

  • replace root username and root password
  • replace wp-playground in the valet link with your wp installation folder name
  • replace wp-plauground.dev database with yours
#!/bin/bash
wp core download
wp config create --dbname=wp-playground.dev --dbuser=root --dbpass=root
wp core install --url=https://wp-playground.dev --title=WpPlayground --admin_user=admin@admin.com --admin_password=admin --admin_email=admin@admin.com
valet link wp-playground --secure
wp plugin install wp-reset developer all-in-one-wp-migration --activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment