How can I configure Syncthing from command line to share a folder with another computer with a specific ID?
Hello,
Having looked in a bit into the matter, using Syncthing from command line on Linux seems to be possible but requires either editing the configuration file or using the REST API.
How can I configure Syncthing to share a specific folder on the server computer with another computer that has a specific ID?
Vesa
Platform: Linux
Restrictions: Looking for scriptable solution without using the GUI
So I’m looking for instructions on how to edit the config file or actually script the REST API calls but maybe you don’t know either. It’s just too complicated for average users I guess. Little bit surprised that there is no official way to do basic stuff like add file, remove file as easily as with the CLI interface for IPFS.
The outdated CLI tool is… Outdated. And not official. No point using it since it might break at any time. That API bindings link for Python does not seem like the right tool for the job either.
Shrug. Let me know if you have some useful info.
I mean I like Syncthing and all, it would just be cool with some IPFS like CLI interface and easy to use.
I’m happy they did. And I’m quite sure you’ll be very welcome to revive the syncthing-cli project by using the REST API.
You can use Syncthing from the commandline very easily (in my case, systemd will start it). You at the moment can configure it only by either manually editing the config.xmlor using the REST interface or using the Web GUI. In this aspect it’s not much different to most other services I use on Linux. By far not all of them have a CLI tool for interactive configuration, most just have config files. So does Syncthing.