Project

General

Profile

Actions

Feature #99801

closed

CLI Command for modifying site config

Added by Benni Mack almost 2 years ago. Updated 5 months ago.

Status:
Closed
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

Actions #1

Updated by Benni Mack 5 months ago

  • Status changed from New to Closed

nice idea, but didn't find somebody to work on it.

Actions

Also available in: Atom PDF