Skip to content →

Quickly disable/enable Owncloud app using command line

Using the occ command we can control Owncloud in many ways. Very useful for situations where you can’t access the web frontend due to a broken upgrade or application.

The occ command is available from Owncloud 7 and later.

For example to disable the calendar application we run:

[shell]sudo -u www-data php -f occ app:disable calendar[/shell]

And to enable the app again:

[shell]sudo -u www-data php -f occ app:enable calendar[/shell]

To find the application’s name look in the owncloud/apps folder or just use the app:list command.

My output looks like this on Owncloud 8.0.0

[shell]sudo -u www-data php occ app:list
Enabled:
– activity
– admin_dependencies_chk
– bookmarks
– documents
– external
– files
– files_external
– files_pdfviewer
– files_sharing
– files_texteditor
– files_trashbin
– files_versions
– files_videoviewer
– firstrunwizard
– gallery
– mozilla_sync
– music
– rainloop
– search_lucene
– templateeditor
– updater
– user_external
Disabled:
– calendar
– contacts
– files_encryption
– files_locking
– provisioning_api
– tasks_enhanced
– user_ldap
– user_webdavauth
[/shell]

Published in Command line Linux Owncloud

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *