Feature #99801
closedCLI Command for modifying site config
0%
Description
On some setups, it might be really good to define e.g. the base for a site config yaml via a CLI command. Why? We might have dynamic URLs for the base on dynamic staging environments. We could even have a "site:create site-identifier --config="{my-config}" for setting up new sites.
For v12 this is much easier now because we now have a site settings file, while site:config is really clearly streamlined:
./bin/typo3cms site:config {site-identifier} {config-key} {value}
When "value" is not set, it returns the value.
Examples:
./bin/typo3cms site:config main base https://example.com
./bin/typo3cms site:config main languages --json= '{"foo":true, "bar": []}'
./bin/typo3cms config:site {site-identifier} {config-key} {value}
site:config --sets or unsets site config settings
site:create --create a site config