# Using Syncthing on Linux with the CLI only?

**URL:** https://forum.syncthing.net/t/using-syncthing-on-linux-with-the-cli-only/14438
**Category:** Support
**Created:** [February 2, 2020, 10:50pm UTC](https://forum.syncthing.net/t/using-syncthing-on-linux-with-the-cli-only/14438 "2020-02-02T22:50:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![devmtl](https://forum.syncthing.net/user_avatar/forum.syncthing.net/devmtl/32/6951_2.png) [@devmtl](https://forum.syncthing.net/u/devmtl)
#### Post date: [February 2, 2020, 10:50pm UTC](https://forum.syncthing.net/t/using-syncthing-on-linux-with-the-cli-only/14438/1 "2020-02-02T22:50:16Z")

</div>

Hi,

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

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

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [February 2, 2020, 11:46pm UTC](https://forum.syncthing.net/t/using-syncthing-on-linux-with-the-cli-only/14438/2 "2020-02-02T23:46:37Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [March 3, 2020, 11:46pm UTC](https://forum.syncthing.net/t/using-syncthing-on-linux-with-the-cli-only/14438/3 "2020-03-03T23:46:39Z")

</div>

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