Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active Mar 24, 2017
Embed
What would you like to do?
wp post create --post_type=post --post_title='Hi Roy' --post_status=publish
wp post delete 42 --force
# Pull develop branch via git
git pull origin develop
# composer update
composer install --no-interaction --no-dev --prefer-dist
# pull live site DB
wp migratedb pull http://hiroy.club 12345xyz --find=//hiroy.club,/srv/www/hiroy.club --replace=//hiroy.club,/srv/www/staging.hiroy.club --skip-replace-guid --media=remove-and-copy
#switch themes
wp theme activate hiroytheme
wp cli update
wp package install aaemnnosttv/wp-cli-login-command
# Install WP CLI
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
# Install WP CLI
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
# add 10,000 pages
wp post generate --count=10000 --post_type=page
# add 40,000 posts
wp post generate --count=40000 --post_type=post
# add 5,000 categories
wp term generate category --count=5000
# add 5,000 tags
wp term generate post_tag --count=5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment