Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CoreAdminHome/Commands/SetConfig.php')
-rw-r--r--plugins/CoreAdminHome/Commands/SetConfig.php21
1 files changed, 12 insertions, 9 deletions
diff --git a/plugins/CoreAdminHome/Commands/SetConfig.php b/plugins/CoreAdminHome/Commands/SetConfig.php
index 9f2d6f0b9a..8b80c6905e 100644
--- a/plugins/CoreAdminHome/Commands/SetConfig.php
+++ b/plugins/CoreAdminHome/Commands/SetConfig.php
@@ -34,20 +34,23 @@ You can set config values two ways, via --section, --key, --value or by command
To use --section, --key, --value, simply supply those options. You can only set one setting this way, and you cannot
append to arrays.
-To use arguments, supply one or more arguments in the following format: Section.config_setting_name=\"value\"
-'Section' is the name of the section, 'config_setting_name' the name of the setting and 'value' is the value.
-NOTE: 'value' must be JSON encoded, so Section.config_setting_name=\"value\" would work but
-Section.config_setting_name=value would not.
+To use arguments, supply one or more arguments in the following format:
+$ ./console config:set 'Section.config_setting_name=\"value\"'
+'Section' is the name of the section,
+'config_setting_name' the name of the setting and
+'value' is the value.
-To append to an array setting, supply an argument like this: Section.config_setting_name[]=\"value to append\"
+NOTE: 'value' must be JSON encoded, so 'Section.config_setting_name=\"value\"' would work but 'Section.config_setting_name=value' would not.
+
+To append to an array setting, supply an argument like this:
+$ ./console config:set 'Section.config_setting_name[]=\"value to append\"'
+
+To reset an array setting, supply an argument like this:
+$ ./console config:set 'Section.config_setting_name=[]'
-To reset an array setting, supply an argument like this: Section.config_setting_name=[]
Resetting an array will not work if the array has default values in global.ini.php (such as, [log] log_writers).
In this case the values in global.ini.php will be used, since there is no way to explicitly set an
array setting to empty in INI config.
-
-Use the --piwik-domain option to specify which instance to modify.
-
");
}