craftcms / craftcms/cms

Updating multiple specific plugins from command line in one go partly broken

Open
#7,066 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When using the command line to update specific plugins via handles, this used to work:

./craft update plugin1 plugin2 plugin3 ...

Something changed fairly recently so that when doing a command like this, it only picks out the first plugin in the list to update. In the above case, it would then present you with the equivalent of:

Performing one update:

    - plugin1 x.x.x => x.x.x

When issuing ./craft help update we still get:

...
- handle: string
  .... You can pass multiple handles separated by spaces, ...
...
Steps to reproduce

[As above]

Additional info
  • Craft version: 3.5.9
  • PHP version: 7.2.24
  • Database driver & version: MySQL 5.7.32
  • Plugins & versions: N/A

Contributor guide

Open the contributing guide

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.

Research direction

No source file or test is named. Reproduce the issue with ./craft update plugin1 plugin2 plugin3 and inspect the command handling for plugin handles; done means all specified plugins are selected for update and ./craft help update remains accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.