Manage my share via script

I’m the admin of my nextcloud server and i know well the bash scripting
How can i create a folder (or a file) via script?

Periodically I’ve to:

  • create a new group (done!)
  • signup a list of a users in this group using a file csv (done!)
  • create a new folder in my home
  • share it with this group

can the occ script help me?
how can I automate this operations?

OCC can’t help you here. But curl can.

Use webdav

Use the OCS Share API