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...
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 vaults
obsidian open β Open a vault by name
obsidian open β Open a note in the default vault
obsidian search "query" β Fuzzy search for notes
obsidian search-content "term" β Search within note contents
Note operations
obsidian create --name "Title" --content "Body text" β Create a new note
obsidian print β Print note contents
obsidian move β Move or rename a note
obsidian delete β Delete a note
obsidian daily β Open or create today's daily note
Properties (frontmatter)
obsidian frontmatter get β Get a property value
obsidian frontmatter set β Set a property value
obsidian frontmatter remove β Remove a property
Plugin development
obsidian plugin reload β Reload the current plugin
obsidian plugin eval '' β Run JavaScript in Obsidian
obsidian plugin screenshot β Take a screenshot of Obsidian
obsidian 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