🧪 Skills
Obsidian Cli Tool
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme d...
v1.0.0
Description
name: obsidian-cli-tool description: Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
Obsidian CLI
Use the obsidian CLI to interact with a running Obsidian instance. Requires Obsidian to be open.
Command reference
Vault operations
obsidian list vaults— List all vaultsobsidian open <vault>— Open a vault by nameobsidian open <note>— Open a note in the default vaultobsidian search "query"— Fuzzy search for notesobsidian search-content "term"— Search within note contents
Note operations
obsidian create --name "Title" --content "Body text"— Create a new noteobsidian print <note>— Print note contentsobsidian move <source> <target>— Move or rename a noteobsidian delete <note>— Delete a noteobsidian daily— Open or create today's daily note
Properties (frontmatter)
obsidian frontmatter get <note> <key>— Get a property valueobsidian frontmatter set <note> <key> <value>— Set a property valueobsidian frontmatter remove <note> <key>— Remove a property
Plugin development
obsidian plugin reload— Reload the current pluginobsidian plugin eval '<code>'— Run JavaScript in Obsidianobsidian plugin screenshot— Take a screenshot of Obsidianobsidian plugin dom— Inspect the DOM structure
Usage examples
# Create a note
obsidian create --name "Meeting Notes" --content "# Standup\n\n- Task A done\n- Task B in progress"
# Search for a note
obsidian search "project roadmap"
# Read a note
obsidian print "Projects/Website Redesign"
# Update frontmatter
obsidian frontmatter set "Todo List" status "in-progress"
# Open daily note
obsidian daily
Requirements
- Obsidian must be running
- The Obsidian CLI plugin must be installed and enabled
- For plugin development commands, the workspace must be an Obsidian plugin project
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!