Instantly share code, notes, and snippets.

@ihsanberahim /_README.md Secret
Last active Feb 17, 2018

Embed
What would you like to do?

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