Forked from ShinichiNishikawa/wp-cli commands for new client projects
Created
March 7, 2020 18:07
-
-
Save andrejIka/2770f10fdd2d8036689d463d1ed39a9c to your computer and use it in GitHub Desktop.
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
wp core download | |
wp core config --dbname=sample --dbuser=root --dbpass=root | |
wp core install --url=http://example.dev --title="WordPress Sample Site" --admin_user=nishikawa --admin_password=pass --admin_email=example@example.com | |
wp plugin install show-current-template wp-basic-auth theme-check plugin-check wp-multibyte-patch --activate | |
wp plugin install wordpress-beta-tester jetpack contact-form-7 vk-all-in-one-expansion-unit | |
wp plugin delete hello | |
wp option update blogdescription "This is a new project!!" | |
wp option update posts_per_page 5 | |
wp option update thread_comments 1 | |
wp option update thread_comments_depth 3 | |
wp option update page_comments 1 | |
wp option update comments_per_page 5 | |
wp option update large_size_w '' | |
wp option update large_size_h '' | |
curl -O https://raw.githubusercontent.com/jawordpressorg/theme-test-data-ja/master/wordpress-theme-test-date-ja.xml | |
wp import ./wordpress-theme-test-date-ja.xml --authors=create | |
rm wordpress-theme-test-date-ja.xml | |
wp theme delete twentyten twentyeleven twentytwelve twentythirteen twentyfourteen | |
echo "apache_modules: - mod_rewrite" >> wp-cli.yml | |
wp rewrite structure '/%year%/%monthnum%/%postname%' --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment