โ† Home

Obsidian CLI

The Obsidian CLI drives Obsidian over IPC. Every read and write goes through Obsidian's own parser, so frontmatter stays well-formed, wikilinks resolve, and plugins like the Linter keep working. It's the right way to script a vault โ€” writing .md files directly is fragile because YAML quoting is easy to corrupt, and plugins reformat files on save anyway.

Obsidian must be running. Everything is key=value pairs: obsidian <command> [key=value ...]. Use path= (not name=) to place files exactly where you want them. Run obsidian --help for the full command list.