A CLI interface for Syncthing's REST API.
BSD-3-CLAUSE License
stcli is a Python based CLI front-end for the Syncthing REST API. It allows performing the various things that can't be done simply by editing the configuration or manipulating the filesystem, such triggering scans and getting status information.
stcli is Licensed under a 3-clause BSD license. For more info, see LICENSE, or check the docstring in stcli.py.
For information on usage, run:
stcli.py help
Configuration is done through ~/.stcli.json There are currently only three config items:
addr
: Specifies the GUI listen address for Syncthing.apikey
: Specifies the API Key to use.https
: Specifies whether or not to use HTTPS to talk to Syncthing.If you are just accessing a local instance of Syncthing, you pass the
command stcli.py setup
the path to Syncthing's config.xml file to
auto-generate the configuration for stcli.
stcli currently provides support for the following REST API calls:
I plan on adding support for other calls as time permits.
If a REST call returns any JSON data, it will be reformatted so that it's actually readable by a real person (keys will be sorted, and line breaks added with 2 spaces for each level of indentation).
For various reasons, I do not plan to add support for the following calls:
syncthing --version
instead.If you want to add support for them, you're going to have to both provide a tested patch and convince me that it's actually worth adding.