# HOWTO: Programatically set up SyncThing via the bulit-in CLI command.

**URL:** https://forum.syncthing.net/t/howto-programatically-set-up-syncthing-via-the-bulit-in-cli-command/23682
**Category:** Howto
**Created:** [January 23, 2025, 2:20am UTC](https://forum.syncthing.net/t/howto-programatically-set-up-syncthing-via-the-bulit-in-cli-command/23682 "2025-01-23T02:20:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![wozjobs](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wozjobs/32/19418_2.png) [@wozjobs](https://forum.syncthing.net/u/wozjobs)
#### Post date: [October 9, 2025, 10:12pm UTC](https://forum.syncthing.net/t/howto-programatically-set-up-syncthing-via-the-bulit-in-cli-command/23682/2 "2025-10-09T22:12:17Z")

</div>

> [@gcr](#):
>
> The [Device] ID serves as both the username and the password, so **keep it secret, keep it safe**

It’s basically just an address similar to how an IP address is just an address. The security comes from you recognizing a Device ID and accepting it on both machines; and that Device IDs cannot be spoofed–they are verified cryptographically when connecting to make sure that the device is what it says it is during announce.

> [@gcr](#):
>
> Unfortunately, we need to make up a random folder ID. **This must not be guessable** , so I’ll use the hash of some random bytes as my ID.

I’m not sure how true this is either… [Folder ID : what does it do?](https://forum.syncthing.net/t/folder-id-what-does-it-do/12981)

---

_[View the full topic](https://forum.syncthing.net/t/howto-programatically-set-up-syncthing-via-the-bulit-in-cli-command/23682)._
