Skip to content

Instantly share code, notes, and snippets.

@sitebuilderone
Last active July 8, 2017 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sitebuilderone/30cbf1816f806e32a8ff to your computer and use it in GitHub Desktop.
Save sitebuilderone/30cbf1816f806e32a8ff to your computer and use it in GitHub Desktop.
WordPress CLI Simple Commands
// 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