Skip to content

Instantly share code, notes, and snippets.

@HenriqueSilverio
Last active October 3, 2018 16:46
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 HenriqueSilverio/b6d3c80c202c39561f509639d3047f4a to your computer and use it in GitHub Desktop.
Save HenriqueSilverio/b6d3c80c202c39561f509639d3047f4a to your computer and use it in GitHub Desktop.
Commands to build a fresh WordPress install using WP-CLI.

1. wp core download

2. wp core install

3. wp config create --dbname=wpdev --dbuser=homestead --dbpass=secret --dbcharset=utf8mb4 --dbcollate=utf8mb4_general_ci

4. wp config set WP_DEBUG true --raw --type=constant

5. wp core install --url={{ url }} --title={{ title }} --admin_user={{ user }} --admin_password={{ pass }} --admin_email={{ email }} --skip-email

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