Incorrect format for options on plugin update page

Open Beginner friendly
#572 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
83/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
php, wordpress
Domain
cli, documentation

Research direction

The issue links to the plugin update command page at developer.wordpress.org/cli/commands/plugin/update/. Start by checking the documented version option against the command examples and the reported successful invocation. Update the option format to match the double-dash form shown in the issue; done when the page documents --version=<version>.

Written by the indexing model from the issue text.

Description

bug command:plugin-update scope:documentation

https://developer.wordpress.org/cli/commands/plugin/update/

Current page states:
–version=

should be:
–-version=

user@server:~/public_html$ wp plugin update wordfence -version=9.1.1
Warning: The '-version=9.1.1' plugin could not be found.
Error: No plugins updated (1 failed).
user@server:~/public_html$ wp plugin update wordfence --version=9.1.1
Installing Wordfence Security – Firewall, Malware Scan, and Login Security (9.1.1)
Downloading installation package from https://downloads.wordpress.org/plugin/wordfence.9.1.1.zip...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Installed 1 of 1 plugins.
user@server:~/public_html$ 
Dominant language
Gherkin
Stars
90
Forks
87
Avg merge
2d 7h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wp-cli/extension-command

All issues in wp-cli/extension-command

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.