Skip to content

Commit 9fb405f

Browse files
authored
Merge pull request #12288 from Duo123418/update2_issues#11549
Update2 issues#11549
2 parents 9bfab2b + f9193da commit 9fb405f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

admin_manual/apps_management.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,38 @@ By default guest users, when using the guests app, are not notified, to enable n
8181

8282
occ config:app:set --type boolean --value="true" updatenotification app_updated.notify_guests
8383

84+
Enabling apps via occ command
85+
-----------------------------
86+
87+
In addition to managing apps via the web interface, administrators can also enable or disable apps using the `occ` command.
88+
89+
To enable an app, use the following command:
90+
91+
::
92+
93+
occ app:enable <app-id>
94+
95+
For example, to enable the "files" app, run:
96+
97+
::
98+
99+
occ app:enable files
100+
101+
To enable the app for specific groups, use the `--groups` option:
102+
103+
::
104+
105+
occ app:enable files --groups=admin
106+
107+
108+
This command enables the "files" app only for the "admin" group.
109+
110+
To disable an app, use:
111+
112+
::
113+
114+
occ app:disable <app-id>
115+
84116
Using private API
85117
-----------------
86118

admin_manual/occ_command.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,13 @@ Enable an app for specific groups of users::
268268
sudo -u www-data php occ app:enable --groups admin --groups sales files_external
269269
files_external enabled for groups: admin, sales
270270

271+
Enable multiple apps simultaneously::
272+
273+
sudo -u www-data php occ app:enable app1 app2 app3
274+
app1 enabled
275+
app2 enabled
276+
app3 enabled
277+
271278
Disable an app::
272279

273280
sudo -u www-data php occ app:disable files_external

0 commit comments

Comments
 (0)