Skip to content

Unable to use wp site list to filter sites by path #285

Open
@dd32

Description

@dd32

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions