Last active
July 8, 2017 02:56
-
-
Save sitebuilderone/30cbf1816f806e32a8ff to your computer and use it in GitHub Desktop.
WordPress CLI Simple Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Download WordPress within folder: | |
wp core download | |
// Create database via Terminal | |
// login local with root | |
mysql -u root -p | |
// create database | |
CREATE DATABASE my_database; | |
// view all databases | |
SHOW DATABASES; | |
// done | |
exit; | |
// May need to modify wp-config.php to: | |
define('DB_HOST', '127.0.0.1'); | |
// Use newly created database and set up config.php with database info: | |
wp core config --dbname=wordpress --dbuser=root --dbpass=root | |
// install WordPress | |
wp core install --url=http://localhost:8888/dev/wordpress/ --title=WordPress --admin_user=myusername --admin_password=mypassword --admin_email=youremail@gmail.com | |
// WORKING with Plugins | |
wp plugin list | |
wp plugin install theme-check // plugin from WP repo | |
wp plugin activate theme-check | |
wp plugin deactivate theme-check | |
wp plugin delete hello | |
// Search WordPress repository | |
wp plugin search seo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment