ironshark / typo3-configuration-manager
用于与 Typo3 配置文件 LocalConfiguration.php 交互的 CLI 工具。可以在部署过程中更新一些序列化的扩展配置。
v0.0.5
2016-02-11 12:25 UTC
Requires
- php: ~5.5|~7.0
- riimu/kit-phpencoder: ^2.1
- symfony/console: ^3.0
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-09-14 18:19:42 UTC
README
用于与 Typo3 配置文件 LocalConfiguration.php 交互的 CLI 工具。可以在部署过程中更新一些序列化的扩展配置。
安装
通过 Composer
$ composer require ironshark/typo3-configuration-manager
用法
config:list
以扁平键/值列表显示所有配置
php vendor/bin/typo3-configuration-manager config:list --source-file="path/to/LocalConfiguration.php" BE.IPmaskList => '*' BE.compressionLevel => '0' BE.debug => '1' ... XT.extConf.sfpmedialibrary.imageCachePath => 'typo3temp/sfpmedialibrary/' EXT.extConf.sfpmedialibrary.imageQualityDownload => '90' EXT.extConf.sfpmedialibrary.imageQualityPreview => '70' EXT.extConf.sfpmedialibrary.complexImageAsJpegFormat => '400' EXT.extConf.sfpmedialibrary.thumbnailSizes => '400x300,300x300,200x200' ...
选项
php vendor/bin/typo3-configuration-manager config:list -h
-s, --source-file[=SOURCE-FILE] Source config-file path [default: "/var/www/typo3conf/LocalConfiguration.php"]
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
config:update
替换配置文件中的值
示例
设置单个配置
php vendor/bin/typo3-configuration-manager config:update --path="SYS.UTF8filesystem" --value="ls" Replace value at path: SYS.UTF8filesystem: null => ls
从 JSON 对象设置多个配置
php vendor/bin/typo3-configuration-manager config:update --value-json={\"SYS.UTF8filesystem\":\"test\"} Replace value at path: SYS.UTF8filesystem: 1 => test ...
使用自定义源和目标从 JSON 对象设置多个配置
php vendor/bin/typo3-configuration-manager config:update --source-file="/var/www/typo3conf/LocalConfiguration.php" --destination-file="/var/www/typo3conf/LocalConfiguration.php.test" --value-json={\"SYS.binSetup\":\"test\"} Replace value at path: SYS.binSetup: perl=/usr/bin/perl,unzip=/usr/bin/unzip => test ...
选项
php vendor/bin/typo3-configuration-manager config:update -h
-s, --source-file[=SOURCE-FILE] Source config-file path [default: "/var/www/typo3conf/LocalConfiguration.php"]
-d, --destination-file[=DESTINATION-FILE] Destination config-file path, source file will be overwritten if no destination provided
-f, --value-file[=VALUE-FILE] Path to file with new values
-j, --value-json[=VALUE-JSON] New values as JSON
-p, --path[=PATH] Path for single element configuration e.g EXT.extConf.sfpmedialibrary.apiUrl
--value[=VALUE] Value for single element configuration e.g https://api.tld
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
list
列出所有可用命令
php vendor/bin/typo3-configuration-manager list
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
贡献
请参阅 CONTRIBUTING 和 CONDUCT 了解详细信息。
安全
如果您发现任何安全相关的问题,请通过电子邮件 pauli@ironshark.de 报告,而不是使用问题跟踪器。
鸣谢
许可
MIT 许可证 (MIT)。请参阅 许可文件 了解更多信息。