Project

General

Profile

Actions

Feature #99801

open

CLI Command for modifying site config

Added by Benni Mack over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
Category:
CLI
Target version:
-
Start date:
2023-02-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

No data to display

Actions

Also available in: Atom PDF