Skip to content
Agentmart
Submit a tool

ObsidianCLI

Official Obsidian CLI (1.12+) — list files, search content, manage properties, query bases, navigate links, create/read/rename/delete notes.

Skill by N4M3Z

IndexedEUPL-1.2★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/n4m3z-obsidiancli

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Official Obsidian CLI (1.12+) — list files, search content, manage properties, query bases, navigate links, create/read/rename/delete notes. USE WHEN listing vault files, searching vault, managing frontmatter properties, querying bases, checking backlinks, creating notes via Obsidian, renaming with backlink updates, or any vault operation that benefits from Obsidian's internal index.

Use cases: writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/obsidiancli

What's inside

Skill name
ObsidianCLI
Description
Official Obsidian CLI (1.12+) — list files, search content, manage properties, query bases, navigate links, create/read/rename/delete notes. USE WHEN listing vault files, searching vault, managing frontmatter properties, querying bases, checking backlinks, creating notes via Obsidian, renaming with backlink updates, or any vault operation that benefits from Obsidian's internal index.
License
EUPL-1.2
Instructions
260 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (3)

  • SKILL.md
  • SKILL.yaml
  • sample.md

SKILL.md (first lines)

# ObsidianCLI

Reference for the official Obsidian CLI (1.12+). Communicates with the running Obsidian desktop app via named pipe. Returns structured data to stdout.

Falls back to file-system operations (Glob, Grep, safe-read, safe-write) when unavailable.

## Setup

The CLI ships inside Obsidian 1.12+. Add to PATH (one-time):

```bash
export PATH="$PATH:/Applications/Obsidian.app/Contents/MacOS"
```

Or use the full path directly. Verify with `make check` in the module root.

## Parameter Syntax

- Key-value pairs: `key=value`
- Spaces in values: `content="Hello world"`
- File targeting: `file=<name>` (wikilink resolution) or `path=<exact/path.md>`
- Vault targeting: `vault=<name>` or inferred from CWD or active vault

## Output Formats

All commands support: `format=json|csv|tsv|md|paths|text|tree|yaml`

Default is `text`. For programmatic consumption use `format=json` or `format=paths`.

## File Operations

### List files

```bash
obsidian files                              # all files
obsidian files folder=Resources ext=md      # filter by directory and extension
obsidian files format=paths                 # file paths only (one per line)
obsidian files format=json                  # structured JSON
```

### Read file content

```bash
obsidian read file="Security"               # by wikilink name
obsidian read path="Topics/Security.md"     # by exact path
```

### Create a note

```bash
obsidian create name="New Note" content="---\ntitle: New Note\n---\n\nContent here."
obsidian create name="From Template" template=Daily
```

### Append / Prepend

```bash
obsidian append file="Daily" content="- New item"
obsidian prepend path="Topics/Security.md" content="## Update\n\nNew section."
```

`prepend` inserts after frontmatter.

### Move / Rename

```bash
obsidian move file=Recipe to=Archive/
obsidian rename file="Old Name" to="New Name"
```

`rename` updates all wikilinks and markdown links across the vault. This is the only reliable way to rename with backlink tracking — file-system `mv` breaks links.

### Delete

```bash
obsidian delete file=OldNote                # to Obsidian trash
obsidian delete file=OldNote permanent      # permanent
```

## Properties (Frontmatter)

### Set property

```bash
obsidian property:set file="Note" property=status value=active
```

Atomic update — avoids the Obsidian Linter race condition that affects read-modify-write cycles with `safe-write edit`.

**Scalar values only.** Cannot set arrays (`tags`, `comments`, `sources`) or nested objects. For complex field types, use `eval` with `processFrontMatter` (see Developer section).

### Remove property

```bash
obsidian property:remove file="Note" property=obsolete_key
```

### Read property

```bash
obsidian property:read file="Note" property=status
obsidian property:read file="Note" property=status format=json
```

**Stdout contamination.** Like `base:query`, `property:read` can mix extraneous output into stdout. Redirect to temp file for reliable parsing, or use `eval` with `processFrontMatter` for programmatic reads.

### Rename property key (vault-wide)

```bash
obsidian property:rename old=old_key new=new_key
```

## Search

### Full-text search

```bash
obsidian search query="forge-tlp"
obsidian search query="forge-tlp" format=json

From N4M3Z/forge-obsidian, EUPL-1.2.

More from N4M3Z/forge-obsidian

Signals

Stars
2
Forks
0
Open issues
1
Last commit (this folder)
Feb 26, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
EUPL-1.2
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from N4M3Z

Cite this page

ObsidianCLI skill. Agent Mart. https://agentmart.dev/skills/n4m3z-obsidiancli (last updated 2026-10-24)