Add documentation for occ tag commands

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg
2022-10-12 12:07:08 +02:00
parent d0fcf553c9
commit 63a5700cdf

View File

@@ -40,6 +40,7 @@ occ command Directory
* :ref:`command_line_upgrade_label`
* :ref:`two_factor_auth_label`
* :ref:`disable_user_label`
* :ref:`system_tags_commands_label`
* `Debugging`_
.. _http_user_label:
@@ -1525,6 +1526,43 @@ Use the following command to enable the user again::
Note that once users are disabled, their connected browsers will be disconnected.
.. _system_tags_commands_label:
System Tags
-----------
List tags::
sudo -u www-data php occ tag:list
Add a tag::
sudo -u www-data php occ tag:add <name> <access>
Edit a tag::
sudo -u www-data php occ tag:edit --name <name> --access <access> <id>
`--name` and `--access` are optional.
Delete a tag::
sudo -u www-data php occ tag:delete <id>
Access level
========== ======== ==========
Level Visible¹ Assignable²
========== ======== ==========
public Yes Yes
restricted Yes No
invisible No No
========== ======== ==========
| ¹ User can see the tag
| ² User can assign the tag to a file
.. _occ_debugging:
Debugging