Create Share Link from command line on Desktop

I want to build my own workflow with Alfredapp, which will be similar to Share Screenshots from Dropbox. What I have so far is that a screenshot with a custom hotkey is saved to Nextcloud Screenshot folder. Now I need to share a public link and save that link to the clipboard. Is that possible with Nextcloud via Terminal or how can I achieve that? Because I am highly missing that feature, but with Alfredapp it is easily possible when I can create a share link through command line.
Thanks for help!

Any help? :heart: