Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrejIka/2770f10fdd2d8036689d463d1ed39a9c to your computer and use it in GitHub Desktop.
Save andrejIka/2770f10fdd2d8036689d463d1ed39a9c to your computer and use it in GitHub Desktop.
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