Comments on: The What, How and Why of WP-CLI: WordPress in Your Terminal https://wpshout.com/wp-cli-wordpress-terminal/ A hub for advanced WordPress users, developers & savvy business owners. Thu, 31 May 2018 06:19:38 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Working With The Command Line and WP-CLI – WPShout https://wpshout.com/wp-cli-wordpress-terminal/#comment-20567 Tue, 06 Jun 2017 17:16:13 +0000 https://wpshout.com/?p=12061#comment-20567 […] The What, How and Why of WP-CLI: WordPress in Your Terminal […]

]]>
By: Anatomy of a WP-CLI Command: wp database import | WPShout https://wpshout.com/wp-cli-wordpress-terminal/#comment-20566 Tue, 09 May 2017 15:56:03 +0000 https://wpshout.com/?p=12061#comment-20566 […] The What, How and Why of WP-CLI: WordPress in Your Terminal […]

]]>
By: Shawn Hooper https://wpshout.com/wp-cli-wordpress-terminal/#comment-20565 Wed, 01 Feb 2017 14:30:51 +0000 https://wpshout.com/?p=12061#comment-20565 Search and Replace is definitely one of the most valuable uses of WP-CLI available, in my opinion. In addition to Matt’s comment about using the –dry-run flag, my other favourite is the –export option, which allows you to do a search and replace, but instead of making the changes to the database, it creates a SQL file with changes made there. So, you’re in your dev environment, but need to prepare a copy of the database for production?

wp search-replace mydevdomain.local productionexample.com –export=production.sql

Boom! You have a file ready to import into your production environment, but your database in development still works!

]]>
By: C.A. Gross https://wpshout.com/wp-cli-wordpress-terminal/#comment-20564 Wed, 01 Feb 2017 05:21:46 +0000 https://wpshout.com/?p=12061#comment-20564 Learning what WP-CLI can do for me has been on my to-do list for a long time–this article was a step in the right direction. Thanks very much for it.

I’m actually interested in potentially using WP-CLI for automation–specifically WordPress installs. Do you have a tutorial or description you could maybe recommend that might get me started?

]]>
By: Matt Gross https://wpshout.com/wp-cli-wordpress-terminal/#comment-20562 Tue, 31 Jan 2017 17:52:39 +0000 https://wpshout.com/?p=12061#comment-20562 Quick note on using search-replace: I always us the –dry-run flag before running a live search replace. It helps to provide a first level sanity check and many times has prevented some tragic misspellings. Should certainly be built into the workflow to make sure the results match your expectations.

]]>