-
Notifications
You must be signed in to change notification settings - Fork 85
Documented url field cannot be use in wp plugin search command's --fields option #470
Copy link
Copy link
Closed
Labels
command:plugin-searchRelated to 'plugin search' commandRelated to 'plugin search' commandscope:documentationRelated to documentationRelated to documentation
Description
Bug Report
- Yes, I reviewed the contribution guidelines.
- Yes, more specifically, I reviewed the guidelines on how to write clear bug reports.
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.":

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 jetpackDescribe 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
command:plugin-searchRelated to 'plugin search' commandRelated to 'plugin search' commandscope:documentationRelated to documentationRelated to documentation

