Issue Feature Closed

#99801CLI Command for modifying site config

Benni Mack 02/02/23, 14:48 updated 06/17/24, 20:04

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, “bar”: []}’

./bin/typo3cms config:site {site-identifier} {config-key} {value}

site:config —sets or unsets site config settings
site:create —create a site config

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.