Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active March 24, 2017 19:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Shelob9/f1a7eabb196812a2a073ee86a80adad9 to your computer and use it in GitHub Desktop.
Save Shelob9/f1a7eabb196812a2a073ee86a80adad9 to your computer and use it in GitHub Desktop.
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