obsidian-clis
Installation
SKILL.md
Obsidian CLIs
CLIs here means two terminal interfaces: the Obsidian app CLI (obsidian, primary) and notesmd-cli (filesystem fallback when obsidian is not available). There is no separate invocation mode—pick the binary that exists in the environment.
Which binary to use
- If
obsidianis on PATH, use it for all workflows below (richer surface: links, Bases, tasks, plugin dev). - If
obsidianis missing butnotesmd-cliis on PATH, follow notesmd-fallback.md for headless vault operations. - If neither is available, say so and fall back to direct file edits, MCP, or other vault tools the user provides.
CLI availability
Before relying on either tool, confirm install with command -v obsidian and command -v notesmd-cli (or which) when the environment is unknown. Do not assume either binary is present.
Obsidian app CLI
Run obsidian <command> to control a running Obsidian instance from the terminal. The app must be running for most commands; the first command will launch Obsidian if not open.