It’s been two months since the last major release. We didn’t want to wait any longer to show you all the goodies that we packed into this version.
Import content from WXR files
A significant addition in this release is the wp import command, which is the yin to wp export‘s yang.
It’s an iteration on Automattic’s WordPress-CLI-Importer.
Install multisite Multisite is a WordPress feature which allows users to create a network of sites on a single WordPress installation. Available since WordPress version 3.0, Multisite is a continuation of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued and its features were included into WordPress core.https://codex.wordpress.org/Create_A_Network. from scratch
Here’s a little puzzle: How do you spin up a multisite install, when you already have a wp-config.php
file with all the settings?
Run wp core install
and then wp core install-network
? No. Use a dummy wp-config.php
file and then swap in the real one? Probably not. Learn to play jazz, impress Matt and then ask him to fix the multisite install process? Maybe later.
To trick WordPress into submission, you have to do a zillion little hacks, strewn throughout the loading process. We took care of this dirty work for you. Just run wp core multisite-install
.
Inline help
In previous versions, wp help
called man
internally. Besides not working on Windows, it also had the significant drawback that you had to use a separate tool to compile man pages.
In WP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/ 0.11, we generate the docs on the fly, using the information from the command PHPDoc.
Support for community packages
Remember how in the previous release we suggested using the installer? If you followed that recommendation, it should be very easy to install community packages now.
Changelog
Commands:
- added wp import command
- added wp core multisite-install command
- renamed
wp core install-network
to wp core multisite-convert
- added wp network-meta command
- renamed
wp blog
to wp site
- added
--force
flag to wp plugin install
and wp theme install
- added
wp user get
subcommand
- added
--format=count
to list
subcommands
- made
wp user
commands accept both user logins or user IDs.
Internals:
- added support for
@when before_wp_load
annotation
- added support for
apache_modules
config key
- show warning if WordPress version is too old
- support passing
--require=
multiple times
- deprecated
WP_CLI::add_man_dir()
You can also browse the full list of resolved issues on Github GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged be the repository owner. https://github.com/.
Contributors to this release: dangardner, danielbachhuber, eugeneware, jmslbam, johnbillion, MiteshShah, om4james, scribu, twratajczak, Veered.