# Possibility for headless syncing with a CLI/daemon

**URL:** <https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162>\
**Category:** Feature archive\
**Tags:** valuable, headless\
**Created:** [October 25, 2021, 9:48pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162 "2021-10-25T21:48:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosaLux161](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@rosaLux161](https://forum.obsidian.md/u/rosaLux161)\
**Post date:** [October 25, 2021, 9:48pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/1 "2021-10-25T21:48:57Z")

</div>

### Use case or problem

To make automated backups without the need for a running desktop system, I’d like to use the Obsidian Sync feature headless in a CLI.

### Proposed solution

Implement a CLI

## Related FR

[Provide an API](https://forum.obsidian.md/t/sync-api-way-to-access-syncd-data/25371) to interact with Obsidian Sync.

---

<div class="post-metadata">

**Author:** ![jesteve](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@jesteve](https://forum.obsidian.md/u/jesteve)\
**Post date:** [October 26, 2021, 9:15pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/2 "2021-10-26T21:15:32Z")

</div>

This would be amazing — especially if it could be executed from a headless NAS server running Linux. I’m currently relying on the Git plugin and a local repository in the serveron to automate my backups. It works, but is not as good as native obsidian sync.

---

<div class="post-metadata">

**Author:** ![bdillahu](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/71e660/32.png) [@bdillahu](https://forum.obsidian.md/u/bdillahu)\
**Post date:** [October 27, 2021, 12:26am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/3 "2021-10-27T00:26:21Z")

</div>

Yep, I have a VM (linux) that’s running Obsidian and syncing so that it can run the backup. This is a little “brittle” to get it to restart, etc.

I CLI version would be great!

---

<div class="post-metadata">

**Author:** ![EatMoreChicken](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/3ec8ea/32.png) [@EatMoreChicken](https://forum.obsidian.md/u/EatMoreChicken)\
**Post date:** [November 2, 2021, 12:46am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/4 "2021-11-02T00:46:14Z")

</div>

Would love this.

---

<div class="post-metadata">

**Author:** ![intellectronica](https://forum.obsidian.md/user_avatar/forum.obsidian.md/intellectronica/32/22772_2.png) [@intellectronica](https://forum.obsidian.md/u/intellectronica)\
**Post date:** [December 18, 2021, 3:20pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/6 "2021-12-18T15:20:12Z")

</div>

Yes, please! +1²

This is also a half-solution for the gap of not having a web-based version. I could host the files using headless sync and edit them on the remote machine.

---

<div class="post-metadata">

**Author:** ![rizzolessio](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rizzolessio/32/10644_2.png) [@rizzolessio](https://forum.obsidian.md/u/rizzolessio)\
**Post date:** [December 20, 2021, 11:07pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/7 "2021-12-20T23:07:27Z")

</div>

I would love an option like that to keep updated my markdown files on some machines where I don’t open Obsidian (also for performance limitations) very often, but where I can still search and open markdown files with other quick viewers/editors.

---

<div class="post-metadata">

**Author:** ![robosquiggles](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@robosquiggles](https://forum.obsidian.md/u/robosquiggles)\
**Post date:** [December 27, 2021, 1:27am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/8 "2021-12-27T01:27:15Z")

</div>

+1000 love this idea 👏 👏 👏

---

<div class="post-metadata">

**Author:** ![masc78](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/67e7ee/32.png) [@masc78](https://forum.obsidian.md/u/masc78)\
**Post date:** [February 6, 2022, 8:53am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/9 "2022-02-06T08:53:42Z")

</div>

I would also love to see such a standalone cli for raspberry pi.  
Would help in some workflows.

---

<div class="post-metadata">

**Author:** ![clarkezone](https://forum.obsidian.md/user_avatar/forum.obsidian.md/clarkezone/32/26317_2.png) [@clarkezone](https://forum.obsidian.md/u/clarkezone)\
**Post date:** [February 18, 2022, 5:00am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/10 "2022-02-18T05:00:51Z")

</div>

I would also love this… preferably written in golang so as to be easily buildable / portable to different flavors / architectures. Would be a superbe value add for obsidian sync subscribers.

---

<div class="post-metadata">

**Author:** ![EatMoreChicken](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/3ec8ea/32.png) [@EatMoreChicken](https://forum.obsidian.md/u/EatMoreChicken)\
**Post date:** [March 10, 2022, 4:40pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/11 "2022-03-10T16:40:31Z")

</div>

Oh dang, still wanting this 🙂

---

<div class="post-metadata">

**Author:** ![equuapotesta](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@equuapotesta](https://forum.obsidian.md/u/equuapotesta)\
**Post date:** [April 12, 2022, 4:09pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/12 "2022-04-12T16:09:07Z")

</div>

+1

I keep obsidian running on a pi that runs various text manipulation scripts against the note directory to automatically update / create certain files. I’d love to simplify that process by making Obsidian sync headless

---

<div class="post-metadata">

**Author:** ![andrewshell](https://forum.obsidian.md/user_avatar/forum.obsidian.md/andrewshell/32/17680_2.png) [@andrewshell](https://forum.obsidian.md/u/andrewshell)\
**Post date:** [June 3, 2022, 12:13am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/13 "2022-06-03T00:13:08Z")

</div>

+1 I want this to run on my server to be content for my node app.

---

<div class="post-metadata">

**Author:** ![clarkezone](https://forum.obsidian.md/user_avatar/forum.obsidian.md/clarkezone/32/26317_2.png) [@clarkezone](https://forum.obsidian.md/u/clarkezone)\
**Post date:** [June 5, 2022, 3:28pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/14 "2022-06-05T15:28:51Z")

</div>

The more I read comments above and think about this the more I really want this as it would unlock so many new and exciting workflows. Would be tempted to make a donation to make it happen.

---

<div class="post-metadata">

**Author:** ![beaussan](https://forum.obsidian.md/user_avatar/forum.obsidian.md/beaussan/32/13163_2.png) [@beaussan](https://forum.obsidian.md/u/beaussan)\
**Post date:** [June 19, 2022, 4:21pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/15 "2022-06-19T16:21:41Z")

</div>

+100, I’m even considering seting up a vm on a server to do this. A headless CLI (that can run on linux would be a great plus) would unlock a lot of options and automations

---

<div class="post-metadata">

**Author:** ![shazow](https://forum.obsidian.md/user_avatar/forum.obsidian.md/shazow/32/37923_2.png) [@shazow](https://forum.obsidian.md/u/shazow)\
**Post date:** [November 17, 2022, 12:40pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/16 "2022-11-17T12:40:54Z")

</div>

+101, I often use neovim to edit some of my markdown (some of my workflows require complex macros that I haven’t ported to Obsidian plugins, not sure it’s worth it at this point as they’re ever-evolving), and I’d love to be able to setup a command hook to force an Obsidian sync when I save from other editors.

---

<div class="post-metadata">

**Author:** ![Asfalots](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@Asfalots](https://forum.obsidian.md/u/Asfalots)\
**Post date:** [January 2, 2023, 10:22am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/17 "2023-01-02T10:22:32Z")

</div>

+1 for this.  
Could be great to have the sync on the nas directly.  
today I’m using syncthings from my desktop

---

<div class="post-metadata">

**Author:** ![Sentinel](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@Sentinel](https://forum.obsidian.md/u/Sentinel)\
**Post date:** [January 30, 2023, 9:32pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/18 "2023-01-30T21:32:18Z")

</div>

+1 for Raspberry Pi headless - would love to do that. Using Sync already, headless would be wonderful.

---

<div class="post-metadata">

**Author:** ![uroybd](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/b9bd4f/32.png) [@uroybd](https://forum.obsidian.md/u/uroybd)\
**Post date:** [January 31, 2023, 10:54am UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/19 "2023-01-31T10:54:15Z")

</div>

+1 I can then setup an email to obsidian feature!

---

<div class="post-metadata">

**Author:** ![flower](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/df788c/32.png) [@flower](https://forum.obsidian.md/u/flower)\
**Post date:** [February 11, 2023, 5:37pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/20 "2023-02-11T17:37:55Z")

</div>

That would be amazing for avoiding to have to open the whole app on startup. It’ll free my window and head space 😛

---

<div class="post-metadata">

**Author:** ![FlorianSch](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/f19dbf/32.png) [@FlorianSch](https://forum.obsidian.md/u/FlorianSch)\
**Post date:** [April 2, 2023, 12:40pm UTC](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162/21 "2023-04-02T12:40:22Z")

</div>

+1 Would be amazing to automate obsidian.

[Next page](https://forum.obsidian.md/t/possibility-for-headless-syncing-with-a-cli-daemon/26162.md?page=2)
