Headless Go client for Obsidian
Home
Getting Started
  • Overview
  • macOS
  • Linux
  • Windows
  • Docker
  • From Source
  • Overview
  • Authentication
  • Sync
  • Publish
  • Configuration
  • Overview
  • Sync Protocol
  • Encryption
  • REST API
  • Circuit Breaker
GitHub
Home
Getting Started
  • Overview
  • macOS
  • Linux
  • Windows
  • Docker
  • From Source
  • Overview
  • Authentication
  • Sync
  • Publish
  • Configuration
  • Overview
  • Sync Protocol
  • Encryption
  • REST API
  • Circuit Breaker
GitHub
  • Usage
  • Authentication
  • Sync
  • Publish
  • Configuration

Sync

ob sync-list-remote

List remote vaults associated with the logged-in account.

ob sync-list-remote

ob sync-list-local

List locally configured sync vaults.

ob sync-list-local

ob sync-create-remote

Create a remote sync vault with optional encryption.

ob sync-create-remote --name <name> [--encryption <mode>] [--password <password>] [--region <region>]
FlagDefaultDescription
--name(required)Vault name
--encryptione2eeEncryption mode: standard or e2ee
--passwordEncryption password (required for e2ee)
--regionVault region

Encryption modes:

  • standard — No encryption
  • e2ee — End-to-end encrypted (requires --password)

ob sync-setup

Attach a local folder to a remote vault.

ob sync-setup --vault <vault> [--path <path>] [--password <password>] [flags]
FlagDefaultDescription
--vault(required)Vault ID or name
--path.Local vault path
--passwordEncryption password (prompts for encrypted vaults)
--device-nameDevice name
--config-dir.obsidianConfig directory
--state-pathCustom state database path (default: ~/.config/obsidian-headless/sync/{vaultID}/state.db)
--periodic-scan1hPeriodic full rescan interval (e.g. 60s, 5m, 1h); set to 0 to disable

ob sync-config

View or update sync settings for a configured vault.

ob sync-config [--path <path>] [--mode <mode>] [--conflict-strategy <strategy>] [flags]
FlagDefaultDescription
--path.Local vault path
--modeSync mode: bidirectional, pull, or mirror
--conflict-strategymergeConflict resolution: merge or conflict
--excluded-foldersComma-separated folder names to exclude
--file-typesComma-separated file types to allow
--configsComma-separated config categories to allow
--device-nameDevice name
--config-dir.obsidianConfig directory
--state-pathCustom state database path (default: ~/.config/obsidian-headless/sync/{vaultID}/state.db)
--periodic-scanPeriodic full rescan interval (e.g. 60s, 5m, 1h); set to 0 to disable

When called without any update flags, displays the current configuration.

ob sync-status

Show sync configuration for a vault.

ob sync-status [--path <path>]
FlagDefaultDescription
--path.Local vault path

ob sync-unlink

Remove local sync configuration for a vault.

ob sync-unlink [--path <path>]
FlagDefaultDescription
--path.Local vault path

ob sync

Run sync for a configured vault.

ob sync [--path <path>] [--continuous]
FlagDefaultDescription
--path.Local vault path
--continuousfalseRun continuously (watch for changes)
Edit this page on GitHub
Last Updated: 5/1/26, 8:35 PM
Contributors: Belphemur
Prev
Authentication
Next
Publish