-
-
Save johanoloflindberg/d184747d226bc6732d541bd27deaab80 to your computer and use it in GitHub Desktop.
WordPress CLI Simple Commands
This file contains hidden or 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 [email protected] | |
// 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