Skip to content

Instantly share code, notes, and snippets.

@palpalani
Forked from ashikawa/commands.sh
Created August 4, 2013 07:58
Show Gist options
  • Save palpalani/6149633 to your computer and use it in GitHub Desktop.
Save palpalani/6149633 to your computer and use it in GitHub Desktop.
#!/bin/sh
# WP-CLI Template
# @see http://wp-cli.org/
# install
curl http://wp-cli.org/installer.sh | bash
# for bash
# echo "PATH=/home/`whoami`/.wp-cli/bin:\$PATH" >> ~/.bashrc
# source ~/.bashrc
# for zsh
# echo "PATH=/home/`whoami`/.wp-cli/bin:\$PATH" >> ~/.bashrc
# source ~/.bashrc
# autoload bashcompinit
# bashcompinit
# source $HOME/.wp-cli/vendor/wp-cli/wp-cli/utils/wp-completion.bash
cd $WP_ROOT
wp core download --locale=ja
# set DB & Install
wp core config \
--dbhost=$DBHOST \
--dbname=$DBNAME \
--dbuser=$DBUSER \
--dbpass=$DBPASS
wp core install \
--url=$SITE_DOMAIN \
--title=$SITE_TITLE \
--admin_name=$ADMIN_NAME \
--admin_email=admin@example.com \
--admin_password=password
# Plugins
## Editor
# PS Disable Auto Formatting
# Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.
wp plugin install ps-disable-auto-formatting --activate
# TinyMCE Advanced
# Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
wp plugin install tinymce-advanced --activate
## Common
# WP Multibyte Patch
# Multibyte functionality enhancement for the WordPress Japanese package.
wp plugin install wp-multibyte-patch --activate
# Admin Menu Editor
# Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.
wp plugin install admin-menu-editor --activate
# Custom Field Template
# The Custom Field Template plugin extends the functionality of custom fields.
wp plugin install custom-field-template --activate
# TinyMCE Templates
# TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor. You can edit and share this template with WordPress users.
wp plugin install tinymce-templates --activate
## SEO, OGP
# All in One SEO Pack
# WordPress SEO plugin to automatically optimize your WordPress blog for Search Engines.
wp plugin install all-in-one-seo-pack --activate
# Google XML Sitemaps
# This plugin will generate a special XML sitemap which will help search engines to better index your blog.
wp plugin install google-sitemap-generator --activate
# Open Graph Pro
# Adds Open Graph tags to your blog. Control how your posts and pages are presented on Facebook and other social media sites. No configuration needed.
wp plugin install ogp --activate
# Widget
# Image Widget
# A simple image widget that uses the native WordPress media manager to add image widgets to your site.
wp plugin install image-widget --activate
## Extra
# Contact Form 7
# Add Contact Form to your WordPress website.
wp plugin install contact-form-7 --activate
# WordPress HTTPS (SSL)
# WordPress HTTPS is intended to be an all-in-one solution to using SSL on WordPress sites.
wp plugin install wordpress-https --activate
# Prime Strategy Page Navi
# Adds the functions to display page navigation (pagination) on home and archives (categories, authors, date and so on).
wp plugin install prime-strategy-page-navi --activate
# My Category Order
# My Category Order allows you to set the order in which categories will appear in the sidebar.
wp plugin install my-category-order --activate
# Nephila clavata
# Allows you to mirror your WordPress media uploads over to Amazon S3 for storage and delivery.
wp plugin install nephila-clavata --activate
# TinyMCE Advanced
# Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
wp plugin install tinymce-advanced --activate
# wp-config.php
define('FS_METHOD', 'direct');
define('FS_CHMOD_DIR', 0775);
define('FS_CHMOD_FILE', 0664);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment