简体   繁体   English

如何用composer更新TYPO3扩展?

[英]How to update a TYPO3 extension with composer?

如何在作曲家模式下更新特定扩展名(仅限此扩展名)?

To update an extension you only need this command: 要更新扩展,您只需要以下命令:

composer update <vendor/package>

If you want to update all dependencies in this extension as well, add the option --with-all-dependencies : 如果您还想更新此扩展中的所有依赖项,请添加选项--with-all-dependencies

composer update <vendor/package> --with-all-dependencies

If you need to perform a major update which cannot be handled with the given version in the composer.json, you can use this command: 如果需要执行composer.json中无法使用给定版本处理的主要更新,可以使用以下命令:

composer require <vendor/package>:"^versionString"

Notice that you should not use composer update without a package name since this updates all packages at once. 请注意,如果没有包名,则不应使用composer update ,因为这会立即更新所有包。 If something is broken after such an update, you will need to revert the whole update. 如果在更新后某些内容被破坏,您将需要还原整个更新。 Also Git bisect is impossible to find the specific package update which broke. 此外,Git bisect无法找到破坏的特定软件包更新。

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

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