Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

obsidian-cli

БесплатноБез исполняемых скриптовНе проверен

Interact with Obsidian using the official CLI to read, search, create, and manage notes, daily notes, tasks, properties, and more. Use when the user wants to…

jykimот jykim★ 52 звезды на GitHub

Об этом скилле

Obsidian CLI Skill

The official Obsidian command-line interface allows you to interact with your vault from the terminal — reading notes, searching, managing properties, handling tasks, and more.

Prerequisites

Verify the CLI is installed and running:

obsidian --version
obsidian help

Requirements:

  • Obsidian v1.12+ (released late 2024)
  • Catalyst license or higher (Obsidian Sync, Publish, or community support)
  • Obsidian must be running — the CLI communicates via IPC with a live instance
  • macOS, Windows, or Linux support

If not installed, download the latest Obsidian installer from https://obsidian.md/download

Key Concepts

IPC-Based Communication

The obsidian-cli works by connecting to a running Obsidian instance via inter-process communication (IPC). It does not manipulate files directly; all commands are executed through Obsidian's API, ensuring proper handling of plugins, sync, and vault structure.

File vs Path Parameters

Two ways to target files:

  • file=<name> — Resolves by name like wikilinks. Searches across folders to find the file. More flexible but slower.

    • Example: obsidian read file="My Note" (finds the file regardless of folder)
    • Best for: Quick access when you know the filename
  • path=<path> — Exact path from vault root. No searching, just direct access.

    • Example: obsidian read path="Journal/2026-02-28.md" (exact path required)
    • Best for: Performance-sensitive operations, when you know the exact location

Vault Parameter

By default, commands run against the currently active vault. Override with:

obsidian read file="Note" vault="My Vault"

Quoting & Escaping

  • Spaces in values — Always quote: name="My Note" not name=My Note
  • Newlines — Use \n: content="Line 1\nLine 2"
  • Tabs — Use \t: content="Column1\tColumn2"

Flags vs Parameters

  • Flags — Boolean options, no value needed: --verbose, --overwrite, --inline
  • Parameters — Key=value pairs: file="Name", query="term", limit=10

Syntax Guide

Basic Command Structure

obsidian <command> [parameter=value...] [--flag...]

Examples

# Parameters with simple values
obsidian read file="Journal"

# Parameters with spaces (quoted)
obsidian create name="My Daily Note" content="Hello world"

# Multiple parameters
obsidian search query="TODO" path="Projects" limit=10

# Flags
obsidian files folder="Project" --verbose

# Mixed
obsidian create path="Journal/2026-02-28.md" content="Daily note" --open

File Targeting Patterns

Read a Note by Name

obsidian read file="Meeting Notes"

Searches vault for Meeting Notes.md anywhere.

Read by Exact Path

obsidian read path="Project/2026-02-28.md"

Reads from exact location; faster for known paths.

Create with Template

obsidian create name="New Note" template="Daily Note Template"

List Files in Folder

obsidian files folder="Journal"

Command Reference

Commands are organized by category. Use obsidian help <command> for detailed options.

File Operations

read

Read file contents. Returns full text or structured data.

# Read by name
obsidian read file="My Note"

# Read by path
obsidian read path="Journal/2026-02-28.md"

# Active file (omit file/path params)
obsidian read

create

Create a new file with optional content and template.

# Simple creation
obsidian create name="New Note"

# With content
obsidian create name="Daily Note" content="Today's note"

# With template
obsidian create name="Meeting" template="Meeting Template" --open --newtab

# With exact path
obsidian create path="Journal/2026-02-28.md" content="..." --overwrite

append

Add content to end of file.

obsidian append file="My Note" content="New line"

# Inline (no newline before appended text)
obsidian append file="My Note" content=" continued" --inline

prepend

Add content to beginning of file.

obsidian prepend file="My Note" content="Header\n"

# Inline
obsidian prepend file="My Note" content="[Start] " --inline

delete

Remove a file (sends to trash by default).

obsidian delete file="Old Note"

# Permanent deletion
obsidian delete path="Archive/obsolete.md" --permanent

rename

Change a file's name.

obsidian rename file="Old Name" name="New Name"

move

Move file to different folder.

obsidian move file="Note" to="Archive"

# Move with new name
obsidian move path="Journal/old.md" to="Archive/2025-old.md"

open

Open file in Obsidian editor.

obsidian open file="Note"

# Open in new tab
obsidian open file="Note" --newtab

File Information

file

Show metadata about a file.

obsidian file file="My Note"

Returns: created date, modified date, size, links, backlinks count.

files

List all files in vault (optionally filtered).


Полный SKILL.md на GitHub

Установить obsidian-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(obsidian:*)

FAQ

Что делает скилл obsidian-cli?

Interact with Obsidian using the official CLI to read, search, create, and manage notes, daily notes, tasks, properties, and more. Use when the user wants to query or manipulate vault content via the obsidian command.

Как установить скилл obsidian-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл obsidian-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить obsidian-cli с