2.2 KiB
2.2 KiB
title, type, tags, date
| title | type | tags | date | |||
|---|---|---|---|---|---|---|
| Obsidian CLI 命令全景速查表 | source |
|
2026-04-18 |
Source File
Summary
- 核心主题:Obsidian 官方 CLI 命令速查与自动化工作流
- 问题域:终端命令控制 Obsidian 功能、AI Agent 集成、自动化脚本构建
- 方法/机制:通过
obsidian <命令> 参数=参数值格式调用内部 API - 结论/价值:实现笔记管理全流程自动化,是 AI Agent 操作 Obsidian 的核心技术
Key Claims
- Obsidian CLI 要求 v1.12+ 版本,并在设置中启用 Command Line Interface
- 基础格式:
obsidian <命令> 参数=参数值 标记参数 - 含有空格的值必须加双引号,标记参数(如
open、inline、total)无需赋值 - CLI 依赖 Obsidian 应用运行状态,但支持 Headless 模式下的同步操作
Key Quotes
"Obsidian CLI is a command line interface that lets you control Obsidian from your terminal for scripting, automation, and integration with external tools." — Obsidian 官方文档
Key Concepts
- Obsidian CLI:官方命令行工具,支持笔记、数据库、属性、插件的终端操作
- Obsidian 自动化:通过 CLI 实现 AI Agent 集成的各种工作流
- Headless 模式:CLI 在无 GUI 环境下运行 Obsidian Sync 的能力
- 标记参数:无需赋值的布尔开关(如
open、total)
Key Entities
Connections
- Obsidian CLI 需要 Obsidian 应用运行 → depends_on
- CLI 是 Claude Skills 的终端扩展能力 → extends
- 与 n8n 结合实现定时任务(Cron Jobs)→ combined_with
Contradictions
- 与纯终端工具(如 Vim、Emacs)对比:Obsidian CLI 仍依赖 Electron GUI 应用运行
- 与 Open Notebook 等纯服务端方案对比:需本地运行 Obsidian
Workflows
全局极速闪记
- 终端绑定
daily:append实现灵感速记,无需唤醒 Obsidian 界面
自动化分拣工作流
- 利用 n8n + CLI 实现属性规范化、文件移动、双链更新