Happy release day!
Today, I’m excited to bring you WP-CLI v1.1.0, chock full of enhancements and bug fixes.
Want to get props in the next release? There are a few projects we’ll be working on:
- Creating a new WPorg home for wp-cli.org/commands and wp-cli.org/docs/internal-api [meta#2465]
- Splitting internal commands into distinct packages [#3728]
- Transforming some ideas into working prototypes.
And, in case you missed it: I’m looking for help maintaining WP-CLI (paid opportunity, commitment of 5-10 hours/week). Know someone who might fit? Email [email protected] or ping ‘danielbachhuber’ on the WordPress Slack.
Everything in 1.1.0
Command improvements:
wp cache *:- Explicitly sets default cache group as ‘default’ to replicate WordPress’ behavior [#3714]
wp cache type:- Detects W3 Total Cache object cache [#3637]
wp (comment|post|user) list:wp core config:- Introduces
--forceparameter for overwriting existingwp-config.phpfile [#3706]
- Introduces
wp core is-installed:- Prevents error notice from
wp_guess_url()when core isn’t installed [#3711]
- Prevents error notice from
wp core language install:- Passes
$wp_versionthrough totranslations_api()so that WordPress reports the correct language download file [#3748]
- Passes
wp core update:- Supports
--version=(nightly|trunk), which will download the latest nightly build [#3645]
- Supports
wp core update-db:- Updates
wpmu_upgrade_siteoption for all networks, not just current, to ensure the admin notice is dismissed [#3659]
- Updates
wp db *:- Runs help at the same point as the command, to enable
wp help db importto be run when WordPress has been downloaded, a wp-config.php has been created, but WordPress hasn’t yet been installed [#3780]
- Runs help at the same point as the command, to enable
wp db cli:- Makes it possible to pass arguments through to the
mysqlexecutable [#3745]
- Makes it possible to pass arguments through to the
wp db export:- Appends a random hash to generated SQL file to help mitigate database files from being accessible at predictable URLs [#3765]
wp media regenerate:- Support generating thumbnails for ‘application/pdf’ for WordPress 4.7+ [#3768]
wp plugin install:wp scaffold plugin:- Ignores
multisite.xml.distin scaffolded.distignore[#3677]
- Ignores
wp scaffold plugin-tests:wp scaffold (plugin-tests|theme-tests):- Validates plugin/theme slug to prevent you from scaffolding tests into an unexpected directory [#3666]
wp scaffold _s:- Validates theme slug earlier to provide a more understandable error [#3724]
wp search-replace:wp server:- Sets the path global parameter as docroot [#3700]
wp site create:- Replicates core logic for creating
$newdomainand$pathto form proper path then global$baseisn’t ‘/’ [#3688]
- Replicates core logic for creating
wp site option list:- Adds
--site_id=<id>filter [#3769]
- Adds
wp theme install:- Uses http cacher when automatically installing a parent theme [#3689]
wp theme mod get:- Introduces
--field=<field>argument for fetching a particular field [#3644]
- Introduces
Framework enhancements:
- Updates Composer-based dependencies to latest [#3638, #3676, #3678, #3698, #3720, #3786]
- Ensures passed positionals take precedent over defaults defined in
wp-cli.yml[#3648] WP_CLI::runcommand()correctly persists current process’ environment variables [#3683, #3730]- Removes backslashes from display of path when destination folder already exists [#3691]
- Globalizes
wp-config.phpvariables to local scope too, enabling WordPress to properly change$table_prefixin multisite [#3695] - Adds global parameters to bash completion [#3697]
- Permits dots to be used in aliases [#3705]
- Introduce a Behat step for replacing a string in a file [#3712]
Contributors to this release (pull requests, documentation, and package authors): amq, bgeihsgt, danielbachhuber, edpittol, ernilambar, greatislander, inderpreet99, louisremi, lwh, metodiew, migueldemoura, miya0001, mmcev106, nikschavan, ntwb, nylen, ocean90, ramoonus, rosswintle, szepeviktor, trepmal, westonruter
You can browse the full list of resolved issues on Github.