Skip to content

Instantly share code, notes, and snippets.

@trajche
Last active October 5, 2021 19:47
Show Gist options
  • Save trajche/7981006294cf2054b5c47277516acc4a to your computer and use it in GitHub Desktop.
Save trajche/7981006294cf2054b5c47277516acc4a to your computer and use it in GitHub Desktop.
Download and install a WP instance (Mac, Valet, MySQL)
mysql -u root -e "create database wp_sitename";
wp core download
wp config create --dbname=wp_sitename --dbuser=root --dbpass=
wp core install --url=https://woocommerce.test --title=WooCommerce --admin_user=admin --admin_password=admin [email protected]
wp plugin uninstall akismet
wp plugin uninstall hello
wp plugin install woocommerce
wp rewrite structure '/%postname%/'
composer create-project roots/sage sage10 dev-master --working-dir=./wp-content/themes/
yarn --cwd ./wp-content/themes/sage10 install
yarn --cwd ./wp-content/themes/sage10 build
valet secure
@trajche
Copy link
Author

trajche commented Oct 5, 2021

Parametrize: wp_sitename, sage10, woocommerce.test etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment