How to set joplin-cli with the Joplin server?

Hi

I am running my own Joplin server which works fine with the desktop and the mobile clients. I would like to set up the sync with the joplin-cli on Debian.

I went through the documentation for joplin-cli, it seems easy but I cant seem to be able to find the right number code for the Joplin server. The doc uses config sync.target 5 for the webdav.

What is the sync number code for Joplin Server so I set the variables properly.

thanks

For the record, just type "joplin config sync.target" without any number which prints the values for different sync targets.