简体   繁体   English

为什么 shopware 6 后端没有“更新所有插件”?

[英]Why is there no "update all plugins" in the shopware 6 backend?

I'm managing multiple shopware 6 shops with a lot of plugins installed.我正在管理安装了很多插件的多个 shopware 6 商店。 The backend only allows to update one plugin which is quite time consuming because the updates done in 2 steps:后端只允许更新一个插件,这非常耗时,因为更新分两步完成:

  • the update is loaded (loader circle)更新已加载(加载程序圈)
  • the backend is relaoded (html reload)后端已重新加载(html 重新加载)

why is there no "update all plugins" button (like eg in wordpress;-) )?为什么没有“更新所有插件”按钮(例如 wordpress;-))?

best, Roman最好的,罗马

I'm expecting an gui or a cli command which allows to download and update all plugins with pending updates at once.我期待一个 gui 或 cli 命令,它允许一次下载和更新所有带有挂起更新的插件。

Not excactly what you're asking for but you can pass multiple names to the cli command:不完全是你要求的,但你可以将多个名称传递给 cli 命令:

./bin/console plugin:update PluginName1 PluginName2 -n

You can also pass an empty string like this and it will update all plugins:您也可以像这样传递一个空字符串,它将更新所有插件:

./bin/console plugin:update "" -n

The -n will skip the interaction to confirm the update for the given plugins. -n将跳过交互以确认给定插件的更新。

To do that the plugins have to be present in the new version you want to have.为此,插件必须存在于您想要的新版本中。 I'd recommend to use composer to manage the plugins.我建议使用 composer 来管理插件。 Shopware has it's own registry where you can get all plugins via composer. Shopware 有自己的注册表,您可以在其中通过 composer 获取所有插件。 You can find the configuration in your Shopware account.您可以在您的 Shopware 帐户中找到配置。 After you've bought a plugin you'll get a bearer token and can require your plugins like this:购买插件后,您将获得一个不记名令牌,并且可以像这样要求您的插件:

composer require store.shopware.com/pluginname

So you will still have two steps to get the plugin and afterwards update it, but it's much more convenient than doing it in the administration.所以你仍然有两个步骤来获取插件,然后更新它,但它比在管理中更方便。

Edit: Added the -n flag as suggested by tinect below.编辑:按照下面的 tinect 的建议添加了-n标志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM