Skip to content

ObsidianCdpTransportOptions.persistentUserDataDirectory?

ObsidianCdpTransportOptions › persistentUserDataDirectory?

Type: string

Absolute path to a **persistent** user-data profile for the owned instance, reused instead of a fresh temporary one and never deleted. Use it for a profile the owner signed in to once by hand, so a suite can drive Obsidian Sync and Obsidian Publish. With it the harness merges the vault into the profile's own obsidian.json (reusing the id the profile already gives that vault, which is what Sync keys its connection to), keeps every other vault, and refuses a second concurrent run on the same profile with PersistentProfileInUseError. Open the vault in place (connectToCdp({ vault }), or new TemporaryVault(path)) rather than a temporary copy, since Sync is connected to the real folder. Ignored in attach mode (port set).