Files
nexus/wiki/sources/obsidian-cli.md
2026-04-18 16:02:38 +08:00

46 lines
1.7 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-16
---
## Source File
- [[raw/Skills/Obsidian CLI.md]]
## Summary
- 核心主题Obsidian 命令行界面,用于终端脚本化、自动化和外部工具集成
- 问题域:如何通过命令行控制 Obsidian 笔记软件的各项功能
- 方法/机制:通过 `obsidian` 命令调用 Obsidian 的内部 API支持 TUI 交互界面
- 结论/价值:实现笔记工作流的自动化,适合 AI Agent 集成和定时任务
## Key Claims
- Obsidian CLI 是 Obsidian 官方提供的命令行工具,支持脚本化、自动化和外部工具集成
- 使用前需安装 Obsidian 1.12+ 版本,并在设置中启用 Command Line Interface
- CLI 依赖 Obsidian 应用运行状态Headless 模式可在无 GUI 下同步
## 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 官方文档
> "Obsidian app must be running. The CLI connects to the running Obsidian instance." — 使用前提条件
## Key Concepts
- [[Obsidian CLI]]Obsidian 官方命令行工具Obsidian 1.12+ 版本新增
- [[TUI]]Terminal User Interface支持交互式命令补全和历史记录
- [[Headless]]:无头模式,可在服务器或 CI/CD 环境运行 Obsidian Sync
## Key Entities
- [[Obsidian]]:基于 Markdown 的本地优先笔记软件
## Connections
- Obsidian CLI 需要 [[Obsidian]] 应用运行 → depends_on
- CLI 是 [[Claude Skills]] 的补充工具 → extends
## Contradictions
- 与纯终端笔记工具(如 Vim、Emacs对比Obsidian CLI 仍依赖 Electron GUI 应用