Last active
March 24, 2017 19:17
-
-
Save Shelob9/f1a7eabb196812a2a073ee86a80adad9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 post create --post_type=post --post_title='Hi Roy' --post_status=publish |
This file contains hidden or 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 post delete 42 --force |
This file contains hidden or 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
# 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 |
This file contains hidden or 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 cli update | |
wp package install aaemnnosttv/wp-cli-login-command |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
# 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