I use the NextCloud rich text editor a lot, and it always bothered me that I couldn't easily launch it from the command line.
Then I discovered this:
echo "EDIT:$(realpath "$file")" | nc -U -q1 "$XDG_RUNTIME_DIR/Nextcloud/socket"
which will open $file in the NextCloud editor in a new browser window, if managed by NC.