Skip to main content

obsidian-cli

Drive Obsidian through its official CLI from the local OS shell. Use when the user asks for the Obsidian CLI, or for Obsidian-specific operations that reading and writing files cannot do (backlinks, properties, daily notes, command palette, plugin reload, tasks/tags, version history, etc.).

Source facts

Repository
Lapis0x0/obsidian-yolo
Last source activity
September 23, 2026 at 10:38
Detected SKILL.md language
English
Stars
1,367
Forks
88

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
obsidian-cli
description
Drive Obsidian through its official CLI from the local OS shell. Use when the user asks for the Obsidian CLI, or for Obsidian-specific operations that reading and writing files cannot do (backlinks, properties, daily notes, command palette, plugin reload, tasks/tags, version history, etc.).
mode
lazy
# Obsidian CLI Thin adapter: route to the official CLI executable and let its help command supply command details. Do not duplicate CLI docs here. ## When to use - User explicitly asks for Obsidian CLI, or needs Obsidian semantics that reading and writing files cannot provide (backlinks, frontmatter properties, daily notes, command palette, plugin reload, link graph, tasks/tags, file history, etc.). - For plain vault file work, use the file tools rather than the CLI. ## Workflow 1. **Resolve executable** (first use in the conversation): prefer the real CLI binary over the app launcher. On macOS, first check `/Applications/Obsidian.app/Contents/MacOS/obsidian-cli`; if executable, use that absolute path for all later commands. Otherwise use `command -v obsidian`. If the resolved path is `/Applications/Obsidian.app/Contents/MacOS/obsidian`, treat it as invalid because it is the app executable. 2. **Probe**: run `<resolved-cli> version`. 3. **Discover**: run `<resolved-cli> help` or `<resolved-cli> help <command>` — CLI documents parameters; read on demand. 4. **Execute**: run `<resolved-cli> <subcommand> …`. Add `format=json` when you need structured output to parse. Rules: - Never launch the interactive TUI (do not run the resolved CLI with no subcommand). - Do not use `/Applications/Obsidian.app/Contents/MacOS/obsidian` as the CLI on macOS; that is the app executable, not the preferred CLI binary. - Mutating CLI commands may require user approval like any other shell command. - Needs the local OS shell, which exists only on desktop. ## Probe failure If `<resolved-cli> version` fails (command not found or CLI error), tell the user to enable **Settings → General → Command line interface**, then retry. Do not guess command syntax — use `<resolved-cli> help` after probe succeeds.
View on GitHub