Skip to main content

@magistr/obsidian-vault

v2026.03.28.2

Manage Obsidian vaults via the official CLI (v1.12+) — notes, search, tags, links, daily notes, properties

Labels

obsidiannotesknowledge-management

Contents

Quality score

How well-documented and verifiable this extension is.

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

Install

$ swamp extension pull @magistr/obsidian-vault

@magistr/obsidian/vaultv2026.03.28.2obsidian_vault.ts

Global Arguments

ArgumentTypeDescription
vaultstringObsidian vault name
listList all notes in the vault
ArgumentTypeDescription
folder?stringFilter by folder path
ext?stringFilter by extension (e.g. 'md')
readRead a note's content
ArgumentTypeDescription
filestringPath to note (e.g. 'folder/note.md')
fileInfoShow file metadata (size, created, modified)
ArgumentTypeDescription
filestringPath to note
createCreate a new note
ArgumentTypeDescription
namestringPath for new note (e.g. 'folder/note.md' or 'note')
content?stringNote content
template?stringTemplate name to use
overwrite?booleanOverwrite if file exists
appendAppend content to end of a note
ArgumentTypeDescription
filestringPath to note
contentstringContent to append
inline?booleanAppend without newline
prependPrepend content after frontmatter
ArgumentTypeDescription
filestringPath to note
contentstringContent to prepend
inline?booleanPrepend without newline
deleteDelete a note (moves to trash by default)
ArgumentTypeDescription
filestringPath to note
permanent?booleanPermanently delete instead of trash
moveMove or rename a note (automatically rewrites wikilinks)
ArgumentTypeDescription
filestringCurrent path
tostringDestination folder or path
searchFull-text search with matching line context
ArgumentTypeDescription
querystringSearch query
path?stringLimit to folder
limit?numberMax files to return
tagsList all tags in the vault
ArgumentTypeDescription
counts?booleanInclude occurrence counts
tagList files with a specific tag
ArgumentTypeDescription
namestringTag name (e.g. '#swamp' or 'swamp')
linksShow outgoing links from a note
ArgumentTypeDescription
filestringPath to note
backlinksShow files linking to a note
ArgumentTypeDescription
filestringPath to note
orphansList notes with no incoming links
unresolvedList unresolved/broken links in vault
ArgumentTypeDescription
verbose?booleanInclude source files
dailyOpen or create today's daily note
dailyReadRead today's daily note content
dailyAppendAppend content to today's daily note
ArgumentTypeDescription
contentstringContent to append
inline?booleanAppend without newline
dailyPrependPrepend content to today's daily note
ArgumentTypeDescription
contentstringContent to prepend
inline?booleanPrepend without newline
propertiesRead frontmatter properties of a note
ArgumentTypeDescription
filestringPath to note
propertySetSet a frontmatter property on a note
ArgumentTypeDescription
filestringPath to note
namestringProperty name
valuestringProperty value (use JSON array for list types, e.g. \
type?enumProperty type hint
propertyRemoveRemove a frontmatter property from a note
ArgumentTypeDescription
filestringPath to note
namestringProperty name to remove

Resources

note(infinite)— Single note content and metadata
fileInfo(infinite)— File metadata (size, timestamps)
notes(infinite)— List of notes/files in vault
searchResults(infinite)— Search results with matching context
tags(infinite)— Tag listing
tagFiles(infinite)— Files matching a specific tag
links(infinite)— Links or backlinks for a note
unresolved(infinite)— Unresolved/broken links in vault
dailyNote(infinite)— Daily note content
properties(infinite)— Note frontmatter properties
operationResult(infinite)— Result of mutating operations