document json type for config:system:set

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman
2025-05-08 17:58:44 +02:00
parent 572f98ce5d
commit b07dfbba04

View File

@ -441,6 +441,8 @@ known:
* ``integer``
* ``float``
* ``string`` (default)
* ``null``
* ``json``
When you want to e.g. disable the maintenance mode run the following command::
@ -474,6 +476,15 @@ space. For example, to replace ``sample.tld`` with ``example.com``,
nextcloud.local
example.com
Alternatively, you can set the entry array at once by using the ``json`` type::
sudo -E -u www-data php occ config:system:set trusted_domains --type json --value '["nextcloud.local","example.com"]'
System config value trusted_domains set to json ["nextcloud.local","example.com"]
sudo -E -u www-data php occ config:system:get trusted_domains
nextcloud.local
example.com
Setting a hierarchical configuration value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -498,6 +509,11 @@ value above. For this Redis example, use the following commands::
sudo -E -u www-data php occ config:system:set redis password --value=secret
sudo -E -u www-data php occ config:system:set redis timeout --value=1.5
Alternatively, you can set the entry configuration at once by using the ``json`` type::
sudo -E -u www-data php occ config:system:set redis --type json --value '{"host":"/var/run/redis/redis.sock","port":0,"dbindex":0,"password":"secret","timeout":1.5}'
Deleting a single configuration value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^