Obsidian-CLI-official-for-1.13+
Official Obsidian CLI (v1.12+). Complete command-line interface for Obsidian notes, tasks, search, tags, properties, links, and more.
от mebusw473 установки в других каталогах
Установить Obsidian-CLI-official-for-1.13+ в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Obsidian CLI
Official command-line interface for Obsidian (v1.12+)
The CLI binary file is
obsidian-cliinside the app, but it registers and is invoked asobsidian. The Setup section below covers both ways.
Prerequisites
- Obsidian 1.12+ (1.12.7+ recommended)
- Obsidian app must be running when using CLI commands
- Enable CLI: Settings → General → Command line interface → Toggle ON
Setup
When you toggle the CLI on in Settings → General, Obsidian registers the CLI for your platform. Restart your terminal after enabling.
macOS
Registration creates a symlink at /usr/local/bin/obsidian → /Applications/Obsidian.app/Contents/MacOS/obsidian-cli. Requires admin privileges.
Verify the symlink:
ls -l /usr/local/bin/obsidian
If missing, create it manually:
sudo ln -sf /Applications/Obsidian.app/Contents/MacOS/obsidian-cli /usr/local/bin/obsidian
⚠️ Pitfall: The CLI binary changes between Obsidian versions. After updating Obsidian, the existing symlink may break or point to a stale binary. Two ways to fix:
- Re-create the symlink manually (fastest):
sudo ln -sf /Applications/Obsidian.app/Contents/MacOS/obsidian-cli /usr/local/bin/obsidian
- Toggle CLI off → on in Settings → General to let Obsidian re-register.
A simple post-update alias to put in
~/.zshrc:alias obsidian-refresh='sudo ln -sf /Applications/Obsidian.app/Contents/MacOS/obsidian-cli /usr/local/bin/obsidian'
Alternative without a symlink — add the MacOS dir to PATH and call the binary directly:
export PATH="$PATH:/Applications/Obsidian.app/Contents/MacOS"
obsidian-cli version # works without /usr/local/bin symlink
Cleanup: older versions added # Added by Obsidian lines to ~/.zprofile. Safe to delete after re-registering with the current version.
Linux
Binary copied to ~/.local/bin/obsidian. Make sure ~/.local/bin is in your PATH:
export PATH="$PATH:$HOME/.local/bin"
Verify:
ls -l ~/.local/bin/obsidian
If missing, copy it manually:
cp /path/to/Obsidian/obsidian-cli ~/.local/bin/obsidian
chmod 755 ~/.local/bin/obsidian
Windows
Registration creates Obsidian.com (a terminal redirector for stdin/stdout) in the install folder and adds it to your PATH. Restart your terminal for PATH changes to take effect.
Verify:
Test-Path "$env:LOCALAPPDATA\Obsidian\Obsidian.com"
Test
obsidian version
Syntax
- Top-level option:
vault=<name>must come first (e.g.obsidian vault="My Vault" daily) - Parameters:
name=valueorname="value with spaces" - Flags: bare name, e.g.
overwrite,newtab,inline,permanent,case - Newlines / tabs: use
\nand\tinside content strings - Target file:
file=<name>— wikilink-style (resolves by basename, no.md)path=<folder/note.md>— exact path
- Default to active file: most commands default to the active file when
file/pathis omitted - Output formats: many list commands accept
format=text|json|tsv|csv|md|paths(default varies; checkobsidian-cli help <cmd>)
Common Commands (with examples)
Daily Notes
obsidian daily # Open today's daily note
obsidian daily:append content="- [ ] Buy milk" # Add to today's note
obsidian daily:prepend content="# Important" # Add to top of today's note
obsidian daily:read # Print today's content
obsidian daily:path # Print today's file path
Files
obsidian create name="Note" content="# Hello" # Create a note
obsidian create name="Note" template=Meeting # Create from a template
obsidian read file="Note" # Read note contents
obsidian append file="Note" content="More text" # Append to note
obsidian prepend file="Note" content="Top text" # Prepend to note
obsidian move file="Note" to="Archive/Note.md" # Move note
obsidian rename file="Note" name="New Name" # Rename note
obsidian delete file="Note" permanent # Delete (skip trash)
obsidian open file="Note" newtab # Open note in new tab
Search
obsidian search query="meeting notes" # List matching files
obsidian search:context query="TODO" # Show matching lines
obsidian search:open query="project" # Open search view
Tasks
obsidian tasks daily todo # Incomplete tasks in daily note
obsidian tasks todo # All incomplete tasks
obsidian task daily line=3 toggle # Toggle task at line 3
obsidian task ref="Note.md:5" done # Mark a specific task done
Tags & Properties
obsidian tags counts # List tags with counts
obsidian tags counts sort=count
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Obsidian-CLI-official-for-1.13+?
Official Obsidian CLI (v1.12+). Complete command-line interface for Obsidian notes, tasks, search, tags, properties, links, and more.
Как установить скилл Obsidian-CLI-official-for-1.13+?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Obsidian-CLI-official-for-1.13+ запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…