eighteen73 / wp-cli-tools

WP-CLI commands to assist our development workflow
1 stars 0 forks source link

Add command for website launch #11

Closed brettsmason closed 1 year ago

brettsmason commented 1 year ago

We have recently had issues with a website launch due to https://core.trac.wordpress.org/ticket/59111 The suggestion was made to include a new command, something like wp eighteen73 launch to deal with all the various operations that need to be acomplished during a website launch, including but not limited to:

wp search-replace "//old-domain.com" "//new-domain.com"
wp yoast index --reindex
wp transient delete --all
edjeavons commented 1 year ago

Good idea.

How about including the domains in the command like this, and it'll skip the search-replace step if they're omitted?

wp eighteen73 launch --old-domain=beta.example.com,example.test --new-domain=example.com

That would allow multiple domains to be entered in situations where >1 have found their way into the DB for some reason (not uncommon in my experience).

Or would we prefer to be prompted for the old & new domains interactively.

edjeavons commented 1 year ago

Available in the latest release v0.4.0