WP-CLI uses the –url= global parameter to specify the request context for the execution of a command. Behind the scenes, –url= sets the $_SERVER[‘HTTP_HOST’], $_SERVER[‘REQUEST_URI’] and related request context variables. WordPress then interprets these variables to understand which site to load on a multisite network.
I’d like to formally introduce you to wp doctor, runcommand’s second premium WP-CLI command. The command is available exclusively to runcommand gold and silver subscribers. You can apply today for access, or read on for more details.
You can connect your local WordPress install to the live site’s database, but be very careful.
Quickly identify what’s slow with WordPress by using `wp profile eval-file`, using `–spotlight` to see the signal from the noise, and more.
Create a distribution .zip or .tar.gz based on a plugin or theme’s .distignore file. Quick links: Using | Installing | Contributing wp dist-archive [ ] [–format= ] For a plugin in a directory ‘wp-content/plugins/hello-world’, this command creates a distribution archive ‘wp-content/plugins/hello-world.zip’.
Quickly identify what’s slow with WordPress.
Offer users the ability to run WP-CLI commands in the browser, without necessarily granting SSH access.
Ugh. Seems like people only want to use open source for free. When it comes to paying for support or fixing bugs, no one sees the value. So many good projects on Github living semi-abandoned, decrepit lives because there’s no economic model for maintaining them.