How to Upgrade Nextcloud Snap

Hi everyone,

So I have Nextcloud Snap version 17 running on a local ubuntu server for over a year.

The client application tells me unsupported server, although it still syncs.

What would be the easiest way to upgrade nextcloud snap 17 to a newer version ?

I think it will have to be in command line ?

Thanks in advance.

sudo snap refresh nextcloud

This should work, at least according to the documentation.

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/package_upgrade.html#upgrading-across-skipped-releases