Get local sync path from command line

Once the Nextcloud client is set up and working, is there a shell command I can use to get the Nextcloud sync directory for the current user? Something like:

$ nextcloudcmd --get-localdirpath
/home/fun/Nextcloud

From reading Advanced Usage β€” Nextcloud Client Manual 3.12.7 documentation, I can see that (on Linux) you can set the local directory path interactively on initial setup (nextcloud --localdirpath /some/path), but I can’t see a way to get it other than parsing ~/.config/Nextcloud/nextcloud.cfg (which is not in a trivial format).

I want to do this so that I can create shell scripts that access my Nextcloud folder in a stable manner across my various systems.