Skip to content

Documented url field cannot be use in wp plugin search command's --fields option #470

@yookoala

Description

@yookoala

Bug Report

Describe the current, buggy behavior

According to the latest documentation and wp help plugin search, the --fields option support the field url, which should be the "Plugin's URL on wordpress.org".

In reality, if I add "url" to the --fields option, it will always show "Error: Invalid field: url.":
Image

Same can be show for different plugin search

root@ae8caccf12cf:/var/www/html/wp-content/plugins# wp plugin search --fields=name,slug,url jetpack
Success: Showing 10 of 703 plugins.
Error: Invalid field: url.

Describe how other contributors can replicate this bug

Run a plugin search command like:

wp plugin search --fields=name,slug,url jetpack

Describe what you would expect as the correct outcome

A list of plugin with all the specified fields (include "url") to appear.

Let us know what environment you are running this on

OS:	Linux 6.17.5-300.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 23 15:35:13 UTC 2025 x86_64
Shell:	
PHP binary:	/usr/local/bin/php
PHP version:	8.1.33
php.ini used:	
MySQL binary:	/usr/bin/mariadb
MySQL version:	mariadb from 11.8.3-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper
SQL modes:	
WP-CLI root dir:	phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:	phar://wp-cli.phar/vendor
WP_CLI phar path:	phar:///usr/local/bin/wp-cli
WP-CLI packages dir:	
WP-CLI cache dir:	/root/.wp-cli/cache
WP-CLI global config:	/root/.wp-cli/config.yml
WP-CLI project config:	
WP-CLI version:	2.12.0

Provide a possible solution

Haven't dig into the code myself. Sorry.

Provide additional context/Screenshots

Website as of now:
Image

Display of wp help plugin search:
Image

Testing search command shows unexpected error:
Image

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