Skip to content

Quick reference

Cheat sheet

Fast lookup pages for daily usage.

Pages

One-liners

shell
# Open today's daily note
obsidian daily

# Append a task to today's daily note (no newline)
obsidian daily:append content="- [ ] Quick capture" inline

# Search the vault and copy results to clipboard
obsidian search query="TODO" --copy

# Read the active file
obsidian read

# Diff the latest version against the current file
obsidian diff file=Recipe from=1

# Take a screenshot (returns base64 PNG, write with path=)
obsidian dev:screenshot path=screenshot.png

# Run JavaScript in the app console
obsidian eval code="app.vault.getFiles().length"

Parameters and flags refresher

TokenMeaning
name=valueParameter with a value
name="quoted value"Wrap values with spaces in quotes
flagBoolean switch with no value
\nNewline inside a quoted value
\tTab inside a quoted value
vault=<name>Target a specific vault (must be first parameter)
file=<name>Resolve file by name (wikilink-style)
path=<path>Exact path from vault root
--copyCopy stdout to the system clipboard

Full targeted form: obsidian vault=<name-or-id> <command> [parameters] [flags]. This page covers desktop obsidian; standalone Headless ob is limited to Sync and Publish. See Choose a tool.

Unofficial SOP mirror. Built for terminal-driven and agentic Obsidian workflows.