Using Syncthing on Linux with the CLI only?

Hi,

I use Syncthing with docker on a Linux server + my 2 Macs. I love the setup so far :slight_smile:

As I manage Linux clusters and that I do delete and recreate them from scratch (using terraform) each month, I want to be able to configure Syncthing by using only the CLI and VARS (no GUI!). Could it be possible?

As I have two macs, I guess I could pass the VAR of my mac1 TOKEN. That would be a game-changer for me (and the whole DevOps community as stateful set up are a pain).

At the moment, I use Resilio Sync 2.6.4, but it’s too much of a BlackBox to my taste.

Here is the cmd to run the container I use so far:

  docker run -d \
    --name=tool_syncthing3 \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=Europe/London \
    -e UMASK_SET=022 \
    -p 8384:8384 \
    -p 22000:22000 \
    -p 21027:21027/udp \
    -v /mnt/syncthing/config:/config \
    --restart unless-stopped \
    linuxserver/syncthing:v1.3.3-ls25

Thanks in advance! Pascal

Syncthing UI calls the rest API, you can call the same rest API from wherever you want.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.