Files
computer-playbook/roles/web-app-nextcloud/docs/OCC.md
T
kevinveenbirkenbach 53e817fa22 refactor(compose): migrate from docker-compose.yml to compose.yml everywhere
- Rename all docker-compose.yml templates to compose.yml
- Update override and CA override filenames accordingly
- Adjust compose wrapper, lookup plugins, filters and path helpers
- Update roles, tasks, handlers and scripts to use compose CLI
- Rewrite documentation and admin guides to reference compose
- Update unit and integration tests to expect compose.yml
- Keep internal variable keys for backward compatibility where needed

https://chatgpt.com/share/69870272-b168-800f-84c3-6417398e441f
2026-02-07 10:14:21 +01:00

771 B

OCC (Nextcloud Command Line) 🔧

Reference for frequently used OCC commands, including user and app management.

General Use

To use OCC, run:

compose exec -it -u www-data application /var/www/html/occ

App Administration

compose exec -u www-data application php occ config:list {{app_name}}

Initialize Duplicates

compose exec -it -u www-data application /var/www/html/occ duplicates:find-all --output

Unlock Files

compose exec -it -u www-data application /var/www/html/occ maintenance:mode --on
compose exec -it nextcloud_database_1 mysql -u nextcloud -pPASSWORD1234132 -D nextcloud -e "delete from oc_file_locks where 1"
compose exec -it -u www-data application /var/www/html/occ maintenance:mode --off