Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. @echo off
  2.  
  3. set /p wpInstance= Local WordPress instance name: & echo.
  4. set dbName=%wpInstance%
  5. set dbUser=root
  6. set dbPass=
  7.  
  8. rem change this if you want to personalize installs.
  9. set user=andrei
  10. set pass=andrei
  11. set email=andrei@themeisle.com
  12. rem change this if you want to personalize installs.
  13.  
  14. echo. & echo This will install a WordPress instance called %wpInstance%. & echo.
  15.  
  16. call mkdir %wpinstance% & cd %wpinstance% & explorer .
  17. echo.
  18. rem Install wp core.
  19. call wp core download
  20. echo.
  21. call wp core config --dbname=%dbName% --dbuser=%dbUser% --dbpass=%dbPass%
  22. echo.
  23. call wp db create
  24. echo.
  25. call wp core install --url=localhost/%wpInstance% --title=%wpInstance% --admin_user=%user% --admin_password=%user% --admin_email=%email% --skip-email
  26. echo.
  27. call wp plugin install wordpress-importer --activate
  28.  
  29. call wp plugin install woocommerce --activate
  30. call wp import .\wp-content\plugins\woocommerce\dummy-data\dummy-data.xml --authors=create
  31.  
  32. call wp plugin delete hello
  33. call wp plugin delete akismet
  34.  
  35. echo All done! Prepare for your new WordPress installation.
  36. echo.
  37.  
  38. start chrome /new-window localhost/%wpInstance%/wp-admin
  39.  
  40. echo Goodbye!
  41. pause
  42.  
  43. :end
  44.  
  45. goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement