Create sharing link with desktop client or command line

Up to now I am only a user of the NC instance which my university provides. I have the desktop client for Linux and it works pretty well. However to create a sharing link I still have to log in to the web client and click on the sharing symbol of the respective folder or file. Is there a possibility to achieve this from within the desktop client? A command line solution which performs some API call also would fit my needs. Would it in principle be possible to obtain the sharing link via the API?

Many thanks.
Cark.

For sure this is possible with the client.

Get into the synced structure, right click and share any file or folder. See

https://docs.nextcloud.com/desktop/2.5/navigating.html#sharing-from-your-desktop

hi, is it possible this make from ps or cmd (in windows), so i get share link to some variable in script and generate qr code?