Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. $ cd ~/Sites/wordpress/ to get you in your working folder
  2. $ wp core download - Downloads the latest wp to that folder
  3. $ wp core config --dbname="wp-experiment" --dbuser="whatevs" --dbpass="shhh" --dbhost="127.0.0.1" --skip-check - creates your wp-config.php file for you.
  4. $ wp db create - creates the db for you using the deets you entered into your wp-config.php file.
  5. $ wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com - does the wp install in seconds.
  6. You now have a running wordpress site! The cooler thing about the wp cli is that your average maintenance becomes a lot quicker.
  7.  
  8. $ wp core update - updates your wordpress installation
  9. $ wp plugin update - updates all your plugins
  10. $ wp plugin install bbpress --activate - install & activate a plugin
  11. There is obvs a whole lot more it can do, especially around migrating content/db between servers etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement