Hi Thomas,
Maybe too late for you but if not: This is how I was able to install the client on rpi: Howto: Install Nextcloud Desktop/Client on Raspberry Pi Os (bullseye)
The command line client would be installed by this command: sudo apt install nextcloud-desktop-cmd
Best Regards