OCC (Own Cloud Console) is a commandline management interface requiring root privileges and is accessed from the Nextcloud-snap host shell
$ sudo nextcloud.occ
@kyrofa Some systems don't add /snap/bin to the PATH. Try
sudo /snap/bin/nextcloud.occ
$ sudo nextcloud.occ --help
$ sudo nextcloud.occ status
$ sudo nextcloud.occ list
$ sudo nextcloud.occ app:list
$ sudo nextcloud.occ app:disable appname
$ sudo nextcloud.occ app:enable appname
$ sudo nextcloud.occ app:update appname
$ sudo nextcloud.occ app:update --all
$ nextcloud.occ user:resetpassword USERNAME
Enter a new password:
Confirm the new password:
Successfully reset password for USERNAME
$ sudo nextcloud.occ user:resetpassword admin
$ sudo nextcloud.occ user:add USERNAME
$ sudo nextcloud.occ maintenance:repair