Lighter-weight nextcloudcmd packaging?

I have a small, headless, NFS- and PXEboot-server running on a Raspberry Pi 4 (Raspberry OS, bullseye, 64-bit). I need to run nextcloudcmd to synchronize files with my nextcloud instance. I can install nextcloud-desktop-cmd, but the extensive prereq chain means that I’ll need to install and maintain 141 packages! The entire server without nextcloudcmd only has 720 packages, so that would be a 20% increase for one command.

Some of the packages include x11-common, libxrandr2, libwayland-client0, and mesa-vulkan-drivers. These are all tools for graphical systems. I’m sure these are pulled in by other prereqs, but this seems really excessive for a command-line tool that does some basic network communication and some admittedly complex file synchronization.

Is there anything I can do to get a lighter-weight nextcloudcmd that only pulls in the libraries it really uses? Better, is there anything we can do to trim down nextcloud-desktop-cmd to just what it needs? I’ve only got a little server here. I don’t want to install and maintain a bunch of packages on it that aren’t really used.

Thanks in advance for any suggestions.

you can mount Nextcloud via WebDAV and sync the files using whatever sync tool you like (copy, rsync etc…)

Thank you for responding, and thank you for the suggestion. It never occurred to me to look for a direct WebDAV interface in Linux. I’ll check that out. If the performance is reasonable, that’s a perfect solution.