I manage a large fleet of Syncthing machines over remote links often slow and high latency. Web UI became somewhat of a burden so I wrote this quick and simple CLI tool in Go using Syncthing API. For now it just displays a dashboard/status of folders and devices.
TBH I have not tested it under Windows yet. I probably should do it now.
As for Android and iOS I think they just built because go has targets for them. I don’t really support them and will probably remove the binaries. These are not phone apps as there is no UI.
The error invalid character 'N' looking for beginning of value comes up when invalid API key is specified, I need to see why it’s not saying “Not Authorized”, which comes from the REST API. I suspect that N is beginning of “Not…”
Congrats on the v1.3 release @tenox. I noticed among the commands you added, there is some duplication regarding the built-in syncthing cli command. Could be worth aligning with that, or just leaving out those commands that are already in the official CLI? Stuff like restart and shutdown.
Ideally, one should be able to add an alias stc=syncthing cli and use the same commands. Or just leave them out of stc and refer to the already implemented ones. Some nice additions of yours would certainly be welcome in the official repo as PRs. That would also make eventual integration into the main CLI easier.
One more nit: The APIKEY environment variable you introduced could be aligned to the official (but undocumented!) STGUIAPIKEY / STGUIADDRESS variable names. So if you start Syncthing and then use stc in the same environment, things work magically when the variables were specified.