Updating all Nextcloud apps in one go is convenient until one of them changes something I use. A dry run is cheap.
sudo -E -u www-data php occ app:update --showonly
According to the docs, this shows the available updates without updating anything. When the list looks fine, there are two ways to go on:
sudo -E -u www-data php occ app:update contacts
sudo -E -u www-data php occ app:update --all
The first updates one app, here Contacts. The second updates every app that has an update. So I’d look at the list, update the apps I care about by name, and only then think about --all.
Two related options from the same page are worth knowing. occ app:list --shipped false shows only the apps that did not ship with Nextcloud,. And --allow-unstable lets an update go to an unstable release, as in occ app:update --allow-unstable news. I would not put that one in a routine.
The caveat is simple: --showonly tells you what is available, not what changed in it. For that you still read the release notes of the app, and a backup beforehand is cheap insurance.
Further reading: Nextcloud admin manual: apps, background jobs and config commands
Going deeper: Guide: put Nextcloud behind Nginx Proxy Manager with HTTPS and the right headers