Files
nexus/wiki/sources/Obsidian-官方-CLI-命令-全景-速查表.md
2026-04-18 16:02:38 +08:00

53 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Obsidian CLI 命令全景速查表"
type: source
tags:
- Obsidian
- CLI
- 自动化
date: 2026-04-18
---
## Source File
- [[raw/Skills/Obsidian 官方 CLI 命令全景速查表.md]]
## 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
- [[Obsidian]]:基于 Markdown 的本地优先笔记软件
- [[n8n]]:工作流自动化工具,常与 CLI 结合实现定时任务
## 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 实现属性规范化、文件移动、双链更新