nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.04k stars 798 forks source link

Nextcloudcmd support for OCS Share API -- sharing functionality in terminal client #4460

Open sunjam opened 2 years ago

sunjam commented 2 years ago

Hi, I'm curious about OCS Share API support in the desktop client nextcloudcmd tool. The question is how to access sharing for desktop users in a terminal or cli interface... is it possible to generate public share url's without accessing the GUI?

I see no mention of sharing via nextcloudcmd in it's --help file, in Desktop documentation or server admin documentation or in previous github issues on this repo. Perhaps I've missed an earlier thread this duplicates. Thanks for any guidance.

vojtapolasek commented 1 year ago

I would be also interested in this functionality.

joshtrichards commented 11 months ago

The OCS Share API itself one way of doing that:

It doesn't require anything more than curl at the command line:

https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-share-api.html#create-a-new-share