# Update von Plugins per Composer klappt nicht

**URL:** <https://forum.shopware.com/t/update-von-plugins-per-composer-klappt-nicht/101645>\
**Category:** Shopware 6 (German)\
**Created:** [20. Oktober 2023 um 18:38 UTC](https://forum.shopware.com/t/update-von-plugins-per-composer-klappt-nicht/101645 "2023-10-20T18:38:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slemke](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@slemke](https://forum.shopware.com/u/slemke)\
**Post date:** [20. Oktober 2023 um 18:38 UTC](https://forum.shopware.com/t/update-von-plugins-per-composer-klappt-nicht/101645/1 "2023-10-20T18:38:54Z")

</div>

Hallo,

bei mir klappt das Update von Modulen über die Kommandozeile nicht korrekt (v6.5.5.2).

Das Composer-Setup sollte korrekt sein:

```auto
composer config repositories.shopware-packages '{"type": "composer", "url": "https://packages.shopware.com"}'
composer config bearer.packages.shopware.com "----entfernt----"

```

Merkwürdigerweise findet Composer die neue Version, installiert sie auch, ein „bin/console plugin:update“ will aber die alte Version installieren/updaten?  
Manchmal (nicht nachvollziehbar, warum und wieso) klappt es dann doch, aber meistens eben nicht - auch nicht, wenn der Cache gelöscht wird. Auch ein „-r“ oder ein „-c“ bei plugin:update helfen nicht.

Was mache ich falsch?

Beispiel: SwagExtensionStore - composer meldet Version 2.0.0, plugin:update 1.7.0.

Wenn ich in der Admin auf „Aktualisieren“ im Plugin-Manager klicke, dann wird das Plugin korrekt aktualisiert…?

```auto

[example@example test.example.de]$ composer require store.shopware.com/SwagExtensionStore
Using version ^2.0 for store.shopware.com/swagextensionstore
./composer.json has been updated
Running composer update store.shopware.com/swagextensionstore
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking store.shopware.com/swagextensionstore (2.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading store.shopware.com/swagextensionstore (2.0.0)
  - Installing store.shopware.com/swagextensionstore (2.0.0): Extracting archive
Generating optimized autoload files
109 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script assets:install [OK]

No security vulnerability advisories found
[example@example test.example.de]$ bin/console plugin:update SwagExtensionStore

Shopware Plugin Lifecycle Service
=================================

 Update 1 plugin(s):
 * Shopware Store (v1.7.0)

 Plugin "SwagExtensionStore" has been updated successfully.

 [OK] Updated 1 plugin(s).

 ! [NOTE] You may want to clear the cache after updating plugin(s). To do so run the cache:clear command

```

Danke!
