Is there a nextcloud library/cli for syncing?

Hello nextclouders,

is there a library i can use for app development?

The use case:
I would like to make a small program that sync one subfolder with a nextcloud installation on a small ARM embedded device.
On the download site i only found desktop and mobile clients.

Ideally the library or CLI tool would take:

  • Credentials
  • URL

And provide 4 commands:

  • TREE (get file tree of the user)
  • GET (download file)
  • PUT (upload file)
  • DELETE (delete file in nextcloud)

Does such a library or small CLI utility exist?