Categories
wp-cli

Settings up a new WordPress install with wp-cli

List of often used wp-cli commands

#Settings

wp core update --allow-root; 
wp option update timezone_string "America/New_York" --allow-root; 
wp option update posts_per_page 9 --allow-root; 
wp rewrite structure '/%category%/%postname%/' --allow-root;
wp user update 1 --display_name=Admin --user_pass=PASS--allow-root;
wp option update admin_email sunny@sunnymorgan.com --allow-root;

#Plugins

wp plugin delete hello --allow-root;
wp plugin install query-monitor --activate --allow-root;
wp plugin install nginx-helper --activate --allow-root;
wp plugin install "http://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=REPLACE_WITH_KEY" --activate --allow-root;

Leave a Reply

Your email address will not be published. Required fields are marked *