Obsidian CLI
Control Obsidian Desktop (v1.12+) from the terminal via IPC — 130+ commands. Detalhes em references/.
When to Activate
- Reading, creating, appending, moving, or deleting vault notes
- Working with daily notes (read, append, prepend)
- Searching vault contents or extracting lines for AI processing
- Managing tasks, tags, properties, backlinks, or orphans
- Automating journals, templates, sync, or vault analytics
Core Principles
- Obsidian must be running — CLI talks to the desktop app via IPC
key=valuesyntax — quote values with spaces; paths are vault-relativecreateomits.md— extension added automatically;moveneeds full target- Pipe-friendly output — combine with
grep/jq;format=jsononsearch - Full flags in
command-reference.md— all 130+ commands with parameter tables
Example
obsidian daily:append content="- [ ] Review PR #42"
obsidian search query="meeting notes" format=json | jq '.[]'
obsidian tasks | grep "\[ \]" # incomplete tasks across vault
References
references/setup.md— prerequisites, Windows/Linux notes, syntax, multi-vault, TUIreferences/core-commands.md— command groups table + quick referencereferences/agent-patterns.md— journal/template/analytics recipes, tips, troubleshootingreferences/command-reference.md— all 130+ commands, flags, output formats
Checklist
- Obsidian running, CLI enabled; normal-privilege terminal on Windows
- Vault-relative paths;
createwithout.md,movewith full target -
daily:prependlands after frontmatter — expected, not a bug - List frontmatter via
eval, notproperty:set(stores strings) - Colon-subcommand failure → check
Obsidian.com/ Git Bash wrapper