Open
Description
Bug Report
The wp site list
command supports filtering to specific fields, such as domain:
wp site list --domain=wordpress.org
and the documentation suggests it can filter to the path, but the parameter conflicts with the global --path
parameter.
The code seems to suggest it's possible too:
https://github.com/wp-cli/entity-command/blob/master/src/Site_Command.php#L558-L563
It should be possible to list sites by their path component somehow, eg: wp site list --field-path=/support/
Let us know what environment you are running this on
OS: Linux 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64
PHP version: 7.2.28
WP-CLI version: 2.4.0