Advertisement
Guest User

Untitled

a guest
Oct 30th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. # list directory
  2. alias: ls
  3.  
  4. # where you ended up
  5. alias: pwd
  6.  
  7. # change directory to documents, example cd documents/Websites/thatsite
  8. # or cd and drag directory and ls enter
  9. alias: cd
  10.  
  11. # clear directory
  12. alias: cmd + k
  13.  
  14. # remove all files from directory
  15. alias: rm ./*
  16.  
  17. # download the latest version of WordPress
  18. alias: wp core download
  19.  
  20. # see a list of WordPress alias options
  21. alias: wp help core
  22.  
  23. # get backout of the help list
  24. alias: q
  25.  
  26. # create and configure the WordPress config.php file (needs parmeters and does not prompt, use wp core config --prompt)
  27. alias: wp core config
  28.  
  29. # create and configure the WordPress config.php file and prompt the user to enter values for all command arguments
  30. # db name: Site_demo
  31. # db user: root (check WebStart MAMP settings)
  32. # db pass: root (check WebStart MAMP settings)
  33. # db host: localhost or IP address 127.0.0.1
  34. # enter through uneeded settings
  35. # extra-php: n
  36. # skip-check: y
  37. alias: wp core config —prompt
  38.  
  39. # us st to open new config file with Sublime Text to look at it
  40. alias: st wp-config.php
  41.  
  42. # check if WordPress core is installed
  43. alias: wp core is-installed
  44.  
  45. # create the WordPress database and using the creditials from the wp config file, follow promts and use
  46. alias: wp db create
  47.  
  48. # import datebase with sql file in root folder
  49. alias: wp db import backup.sql
  50.  
  51. # check site url
  52. alias: wp option get home
  53.  
  54. # show search replace alias options
  55. alias: wp search replace
  56.  
  57. # search and replace imported url to local setup url, dry run first
  58. wp search-replace //sitename.com //sitename.tuna --dry-run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement