Creating public share link by API, occ, or programatically

I am using the occ command-line tool in a bash script to do some recurring tasks at my organization. I am looking for a method to generate public share links programmatically. Ideally, there might be a share command as part of occ that could work like this:

occ share [-kind link|user|group] [-sharewith target] path/to/

Is there any existing method of accomplishing this?

1 Like

how did you do it?

any way of doing this without creating an all-access-admin-user?

Greetings Matt