skills.volces.com120 installs
obsidian-cli-official
Official Obsidian CLI (v1.12+). Complete command-line interface for Obsidian notes, tasks, search, tags, properties, links, and more.
How do I install this agent skill?
npx skills add https://skills.volces.com --skill obsidian-cli-officialIs this agent skill safe to install?
- Socketpass
No alerts
What does this agent skill do?
Obsidian Official CLI
Official command-line interface for Obsidian (v1.12+). 115 commands.
Prerequisites
- Obsidian 1.12+ (free, public release since v1.12)
- Obsidian must be running (CLI connects via IPC)
- Enable CLI: Settings → General → Enable CLI
Setup
Add Obsidian to PATH:
macOS:
export PATH="$PATH:/Applications/Obsidian.app/Contents/MacOS"
Windows:
$env:PATH += ";$env:LOCALAPPDATA\Obsidian"
Linux:
- Snap: Already in PATH
- Flatpak:
alias obsidian='flatpak run md.obsidian.Obsidian' - AppImage: Move to
~/.local/binandchmod +x
Test: obsidian version
Syntax
- Parameters:
name=valueorname="value with spaces" - Flags: just the name, e.g.
open,overwrite - Newlines: use
\nin content strings - Target vault:
obsidian vault="My Vault" <command>(must be first) - Target file:
file=<name>(wikilink-style) orpath=<folder/file.md>(exact) - Copy output: append
--copyto any command
Common Commands (with examples)
Daily Notes
obsidian daily # Open today
obsidian daily:append content="- [ ] Buy milk" # Add to today
obsidian daily:prepend content="# Important" # Add to top
obsidian daily:read # Read today's content
obsidian daily:path # Get daily note path
Files
obsidian create name="Note" content="# Hello" # Create note
obsidian create name="Note" template=Meeting # Create from template
obsidian read file="Note" # Read note
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" # Delete note
obsidian open file="Note" # Open note
Search
obsidian search query="meeting notes" # Search vault
obsidian search:context query="TODO" # Search with context
obsidian search:open query="project" # Open search view
Tasks
obsidian tasks daily todo # Incomplete tasks in daily
obsidian tasks todo # All incomplete tasks
obsidian task daily line=3 toggle # Toggle task at line 3
Tags & Properties
obsidian tags counts # List all tags
obsidian tags counts sort=count # Sort by frequency
obsidian property:set name="status" value="done" file="Note"
obsidian property:read name="status" file="Note"
obsidian property:remove name="status" file="Note"
obsidian properties file="Note" # List all properties
Links
obsidian backlinks file="Note" # Incoming links
obsidian links file="Note" # Outgoing links
obsidian orphans # No incoming links
obsidian deadends # No outgoing links
obsidian unresolved # Broken links
Developer
obsidian devtools # Open dev tools
obsidian eval code="app.vault.getFiles().length" # Run JavaScript
obsidian dev:screenshot path=screenshot.png # Screenshot
obsidian plugin:reload id=my-plugin # Reload plugin
All Commands (115 total)
General (4)
help- Show help / help for specific commandversion- Show Obsidian versionreload- Reload the app windowrestart- Restart the app
Daily Notes (5)
daily- Open daily notedaily:path- Get daily note pathdaily:read- Read daily note contentsdaily:append- Append content to daily notedaily:prepend- Prepend content to daily note
Files & Folders (12)
file- Show file infofiles- List files in vaultfolder- Show folder infofolders- List folders in vaultopen- Open a filecreate- Create a new fileread- Read file contentsappend- Append content to a fileprepend- Prepend content to a filemove- Move or rename a filerename- Rename a filedelete- Delete a file
Search (3)
search- Search vault for textsearch:context- Search with matching line contextsearch:open- Open search view
Tasks (2)
tasks- List tasks in the vaulttask- Show or update a task
Tags (2)
tags- List tags in the vaulttag- Get tag info
Properties (4)
properties- List properties in the vaultproperty:set- Set a property on a fileproperty:remove- Remove a property from a fileproperty:read- Read a property value
Aliases (1)
aliases- List aliases in the vault
Links (5)
backlinks- List backlinks to a filelinks- List outgoing links from a fileunresolved- List unresolved linksorphans- Files with no incoming linksdeadends- Files with no outgoing links
Outline (1)
outline- Show headings for a file
Bookmarks (2)
bookmarks- List bookmarksbookmark- Add a bookmark
Bases / Database (4)
bases- List all base filesbase:views- List views in a basebase:create- Create a new item in a basebase:query- Query a base and return results
Templates (3)
templates- List templatestemplate:read- Read template contenttemplate:insert- Insert template into active file
Commands & Hotkeys (4)
commands- List available command IDscommand- Execute an Obsidian commandhotkeys- List hotkeyshotkey- Get hotkey for a command
Tabs & Workspaces (7)
tabs- List open tabstab:open- Open a new tabworkspace- Show workspace treeworkspaces- List saved workspacesworkspace:load- Load a saved workspaceworkspace:save- Save current layoutworkspace:delete- Delete a saved workspace
File History & Diff (6)
diff- List or diff local/sync versionshistory- List file history versionshistory:list- List files with historyhistory:read- Read a file history versionhistory:restore- Restore a file history versionhistory:open- Open file recovery
Sync (7)
sync- Pause or resume sync (on/off)sync:status- Show sync statussync:history- List sync version historysync:read- Read a sync versionsync:restore- Restore a sync versionsync:open- Open sync historysync:deleted- List deleted files in sync
Publish (6)
publish:site- Show publish site infopublish:list- List published filespublish:status- Show publish statuspublish:add- Publish filespublish:remove- Unpublish filespublish:open- Open published site
Themes & Snippets (9)
themes- List installed themestheme- Show active theme or get infotheme:set- Set active themetheme:install- Install a community themetheme:uninstall- Uninstall a themesnippets- List installed CSS snippetssnippets:enabled- List enabled CSS snippetssnippet:enable- Enable a CSS snippetsnippet:disable- Disable a CSS snippet
Plugins (9)
plugins- List installed pluginsplugins:enabled- List enabled pluginsplugins:restrict- Toggle restricted modeplugin- Get plugin infoplugin:enable- Enable a pluginplugin:disable- Disable a pluginplugin:install- Install a community pluginplugin:uninstall- Uninstall a community pluginplugin:reload- Reload a plugin
Vault (3)
vault- Show vault infovaults- List known vaultsvault:open- Open a vault (TUI only)
Random Notes (2)
random- Open a random noterandom:read- Read a random note
Unique Notes (1)
unique- Create unique note
Web Viewer (1)
web- Open URL in web viewer
Word Count (1)
wordcount- Count words and characters
Recently Opened (1)
recents- List recently opened files
Developer (10)
devtools- Toggle Electron dev toolseval- Execute JavaScriptdev:screenshot- Take a screenshotdev:console- Show captured console messagesdev:errors- Show captured errorsdev:css- Inspect CSS with source locationsdev:dom- Query DOM elementsdev:cdp- Run Chrome DevTools Protocol commanddev:debug- Attach/detach CDP debuggerdev:mobile- Toggle mobile emulation
Troubleshooting
"Cannot connect to Obsidian"
- Ensure Obsidian is running
- Enable CLI in Settings → General → Enable CLI
"Command not found: obsidian"
- Add Obsidian to PATH (see Setup above)
"File not found"
file=Nameresolves like wikilinks (no path, no .md)path=folder/file.mdfor exact paths
中文说明
前置条件
- Obsidian 1.12+(免费公开版本)
- Obsidian 必须运行中
- 启用 CLI:设置 → 通用 → 启用 CLI
常用命令
obsidian daily # 打开今日日记
obsidian create name="笔记" # 创建笔记
obsidian search query="关键词" # 搜索
obsidian tasks daily todo # 列出未完成任务
obsidian tags counts # 列出标签
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/skills.volces.com/obsidian-cli-official">View obsidian-cli-official on skillZs</a>