An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
{
"ID": "20260612191136-feqbi1x",
"Spec": "2",
"Type": "NodeDocument",
"Properties": {
"id": "20260612191136-feqbi1x",
"title": "命令行接口",
"type": "doc",
"updated": "20261024162311"
},
"Children": [
{
"ID": "20260618123536-p3y6znx",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-p3y6znx",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "概述"
}
]
},
{
"ID": "20260618123536-evj0luf",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-evj0luf",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "思源笔记内置 CLI(Command Line Interface),可直接访问工作空间数据,无需启动内核服务。适合脚本化处理、批量管理,以及配合 AI 智能体对笔记数据进行读写操作。"
}
]
},
{
"ID": "20260618123536-s970vp9",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-s970vp9",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan [全局标志] <命令> [参数]"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260618123536-f5newid",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-f5newid",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeText",
"Data": "安装"
}
]
},
{
"ID": "20260618123536-f37k0mm",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-f37k0mm",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "CLI 可执行文件为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<安装目录>/resources/kernel/SiYuan-Kernel"
},
{
"Type": "NodeText",
"Data": ",可通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan"
},
{
"Type": "NodeText",
"Data": " 命令调用。"
}
]
},
{
"ID": "20260618123536-fdlw82f",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20260618123536-fdlw82f",
"updated": "20261006133358"
},
"Children": [
{
"ID": "20260618123536-lkzcvp0",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-lkzcvp0",
"updated": "20261006133358"
},
"Children": [
{
"ID": "20260618123536-n29x52o",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-n29x52o",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "strong",
"TextMarkTextContent": "Windows"
},
{
"Type": "NodeText",
"Data": ":安装程序自动将内核目录加入 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "PATH"
},
{
"Type": "NodeText",
"Data": ",可直接使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "。微软商店版(3.8.7 及以上)在 Windows 10 1607(内部版本 14393)及以上系统中注册 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan.exe"
},
{
"Type": "NodeText",
"Data": " 应用执行别名。安装或更新后,打开新的终端并运行 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan --help"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260708121000-cnstore1",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260708121000-cnstore1",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "cG93ZXJzaGVsbA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan --help\n\n# 检查实际使用的命令\nGet-Command siyuan -All\nwhere.exe siyuan\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20261006133358-v3b716p",
"Type": "NodeParagraph",
"Properties": {
"id": "20261006133358-v3b716p",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果找不到命令,请检查 Windows 中思源的应用执行别名是否已启用,以及 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "%LOCALAPPDATA%\\Microsoft\\WindowsApps"
},
{
"Type": "NodeText",
"Data": " 是否在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "PATH"
},
{
"Type": "NodeText",
"Data": " 中。上述命令可检查命令解析结果;同时安装多个思源版本或 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "PATH"
},
{
"Type": "NodeText",
"Data": " 顺序可能导致调用其他可执行文件"
}
]
},
{
"ID": "20260708130000-cnuninst",
"Type": "NodeParagraph",
"Properties": {
"id": "20260708130000-cnuninst",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果曾创建旧的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan.cmd"
},
{
"Type": "NodeText",
"Data": " 转发器,请先运行 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "& \"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\siyuan.exe\" --help"
},
{
"Type": "NodeText",
"Data": " 确认商店版别名可用,再按需删除转发器:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "Remove-Item \"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\siyuan.cmd\""
}
]
}
]
},
{
"ID": "20260618123536-urf65ut",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-urf65ut",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-0dbxbt6",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-0dbxbt6",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "strong",
"TextMarkTextContent": "macOS"
},
{
"Type": "NodeText",
"Data": ":安装后创建软链接"
}
]
},
{
"ID": "20260618123536-7funewf",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-7funewf",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "ln -s /Applications/SiYuan.app/Contents/Resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
}
]
},
{
"ID": "20260618123536-ldi1q6u",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-ldi1q6u",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-k9f933z",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-k9f933z",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "strong",
"TextMarkTextContent": "Linux"
},
{
"Type": "NodeText",
"Data": ":安装后创建软链接"
}
]
},
{
"ID": "20260618123536-hd1mmm4",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-hd1mmm4",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "ln -s <安装目录>/resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
}
]
}
]
},
{
"ID": "20260618123536-hiq4p1p",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-hiq4p1p",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "全局标志"
}
]
},
{
"ID": "20260618123536-45t5vzs",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0,
0
],
"Properties": {
"colgroup": "|||",
"id": "20260618123536-45t5vzs",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "标志"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "简写"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "默认值"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "-w"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_WORKSPACE_PATH"
},
{
"Type": "NodeText",
"Data": ",否则 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~/SiYuan"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "指定工作空间目录"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--format"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "-f"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "table"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "输出格式:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "table"
},
{
"Type": "NodeText",
"Data": " 或 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "json"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "false"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "预演受支持的变更,不实际执行"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--log-level"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "-v"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "warn"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "日志级别:off、trace、debug、info、warn、error 或 fatal"
}
]
}
]
}
]
},
{
"ID": "20260618123536-39f67uc",
"Type": "NodeBlockquote",
"Properties": {
"id": "20260618123536-39f67uc",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeBlockquoteMarker",
"Data": ">"
},
{
"ID": "20260618123536-4th77fq",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-4th77fq",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "普通单次命令的脚本应始终传入 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": ",避免选错数据。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace info"
},
{
"Type": "NodeText",
"Data": " 可以回退到最后一个已注册工作空间;"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "serve"
},
{
"Type": "NodeText",
"Data": " 按 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20200828105441-r76vmu5",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "内核参数"
},
{
"Type": "NodeText",
"Data": " 选择工作空间,未指定 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--log-level"
},
{
"Type": "NodeText",
"Data": " 时使用配置的日志级别。仅在支持的命令中使用 "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--format json"
},
{
"Type": "NodeText",
"Data": "。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": " 用于预演受支持的变更,不保证实际执行时所有检查都会通过。"
}
]
}
]
},
{
"ID": "20260618123536-exkxuwi",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-exkxuwi",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "参数约定"
}
]
},
{
"ID": "20260618123536-1ee2du1",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20260618123536-1ee2du1",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-kvo7j71",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-kvo7j71",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-sd51mbt",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-sd51mbt",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "参数以 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--"
},
{
"Type": "NodeText",
"Data": " 开头,后跟值,用空格分隔。如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace /path"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618123536-bppp2wf",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-bppp2wf",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-b0gc7id",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-b0gc7id",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "带简写的参数可用简写形式。如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "-w /path"
},
{
"Type": "NodeText",
"Data": " 替代 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace /path"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618123536-rm06w60",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-rm06w60",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-woj681a",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-woj681a",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "[ ]"
},
{
"Type": "NodeText",
"Data": " 内的参数可选"
}
]
}
]
},
{
"ID": "20260618123536-mgk90im",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-mgk90im",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-znbz2vz",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-znbz2vz",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "无值的标志直接使用。如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618123536-bgq3nv2",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-bgq3nv2",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-qqo7z72",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-qqo7z72",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "部分参数可重复使用多次。如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook box1 --notebook box2"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
},
{
"ID": "20260618123536-jpvbcyj",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-jpvbcyj",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "定位目标"
}
]
},
{
"ID": "20260618123536-wjpedge",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20260618123536-wjpedge",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-ulxjdf6",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-ulxjdf6",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-eoefpem",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-eoefpem",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ":通过块 ID 精确定位,适用于 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document"
},
{
"Type": "NodeText",
"Data": " 等大部分命令"
}
]
}
]
},
{
"ID": "20260618123536-ihk0rzt",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-ihk0rzt",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-w7eednd",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-w7eednd",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--hpath"
},
{
"Type": "NodeText",
"Data": ":通过人类可读路径定位(如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "/文件夹/文档名"
},
{
"Type": "NodeText",
"Data": "),适用于 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document list/move"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "import"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618123536-kmu8i31",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618123536-kmu8i31",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-mdtnhh1",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-mdtnhh1",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--parent"
},
{
"Type": "NodeText",
"Data": ":通过父块 ID 定位插入或追加位置,适用于 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block insert/append/prepend/move"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
},
{
"ID": "20260618123536-hegvyn4",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-hegvyn4",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "常见使用场景"
}
]
},
{
"ID": "20260618123536-a4ts254",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-a4ts254",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "脚本化批量查询"
}
]
},
{
"ID": "20260618123536-vxyqksh",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-vxyqksh",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "search"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sql"
},
{
"Type": "NodeText",
"Data": " 支持用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--format json"
},
{
"Type": "NodeText",
"Data": " 输出 JSON 供脚本处理。请核对各命令的输出约定:即使全局格式设为 JSON,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file list"
},
{
"Type": "NodeText",
"Data": " 仍输出表格,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file read"
},
{
"Type": "NodeText",
"Data": " 仍输出原文。"
}
]
},
{
"ID": "20260618123536-7bc80h1",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-7bc80h1",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "安全验证"
}
]
},
{
"ID": "20260618123536-h04nahk",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-h04nahk",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "对于支持 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": " 的修改或删除操作,先预演并核对 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "[dry-run] Would..."
},
{
"Type": "NodeText",
"Data": " 输出。预演不会执行实际运行时的全部检查;移除参数前仍应确认工作空间和备份。"
}
]
},
{
"ID": "20260618123536-43pt8gz",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-43pt8gz",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "批量笔记管理"
}
]
},
{
"ID": "20260618123536-qj2ps0i",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-qj2ps0i",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "dailynote create"
},
{
"Type": "NodeText",
"Data": " + "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block append"
},
{
"Type": "NodeText",
"Data": " 批量写入日记记录;通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "attr set"
},
{
"Type": "NodeText",
"Data": " 批量设置文档图标、标签。"
}
]
},
{
"ID": "20260618123536-mtu8cea",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-mtu8cea",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "SQL 数据分析"
}
]
},
{
"ID": "20260618123536-mntbdfv",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-mntbdfv",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sql"
},
{
"Type": "NodeText",
"Data": " 命令支持对 blocks 等系统表执行只读 SQL 查询,用于统计分析块类型分布、最近修改文档等。"
}
]
},
{
"ID": "20260618123536-pyqsgb5",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-pyqsgb5",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "数据备份"
}
]
},
{
"ID": "20260618123536-x8mq0iq",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-x8mq0iq",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "用 "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo create --memo \"checkpoint\""
},
{
"Type": "NodeText",
"Data": " 创建快照检查点。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": " 仅导出完整 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "data"
},
{
"Type": "NodeText",
"Data": " 目录,不包括 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "conf"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "history"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo"
},
{
"Type": "NodeText",
"Data": " 等工作空间目录,不是整个工作空间备份;存在任何加密笔记本时会拒绝执行。"
}
]
},
{
"ID": "20260618123536-nmbxuga",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-nmbxuga",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "tag",
"TextMarkTextContent": "注意"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260618123536-xfjp9yn",
"Type": "NodeList",
"ListData": {
"Typ": 1
},
"Properties": {
"id": "20260618123536-xfjp9yn",
"updated": "20261016112115"
},
"Children": [
{
"ID": "20260618123536-8ezc6wr",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "MS4=",
"Num": 1
},
"Properties": {
"id": "20260618123536-8ezc6wr",
"updated": "20261016112115"
},
"Children": [
{
"ID": "20260618123536-5k35eyd",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-5k35eyd",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "支持时使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": " 预演变更;预演成功不保证实际执行成功"
}
]
}
]
},
{
"ID": "20260618123536-bwvut78",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Properties": {
"id": "20260618123536-bwvut78",
"updated": "20260618123536"
},
"Children": [
{
"ID": "20260618123536-4chtuuh",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-4chtuuh",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "批量操作前建议先创建快照或导出备份,便于回滚"
}
]
}
]
},
{
"ID": "20261016112115-8y5a6i5",
"Type": "NodeListItem",
"Properties": {
"id": "20261016112115-8y5a6i5",
"updated": "20261016112115"
},
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Children": [
{
"ID": "20261016112115-aimtqbe",
"Type": "NodeParagraph",
"Properties": {
"id": "20261016112115-aimtqbe",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "单次 CLI 命令不支持加密笔记本及其块、原始文件、历史和快照文件内容,即使已在应用中解锁也不支持。工作空间中只要存在加密笔记本,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": " 就会被拒绝。请通过应用内的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "应用"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "数据"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导出 Data"
},
{
"Type": "NodeText",
"Data": " 导出数据归档,按 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260907120000-crycn01",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "加密笔记本"
},
{
"Type": "NodeText",
"Data": " 说明恢复,并分开保管匹配的密钥备份和主密码"
}
]
}
]
}
]
},
{
"ID": "20260618123536-56wxe3i",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618123536-56wxe3i",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "命令参考"
}
]
},
{
"ID": "20260618123536-m81sgx0",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-m81sgx0",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "帮助"
}
]
},
{
"ID": "20260618123536-1o54hhl",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-1o54hhl",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan --help # 列出所有可用命令\nsiyuan block --help # 查看 block 子命令的参数说明\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-kkvx936",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-kkvx936",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "工作空间"
}
]
},
{
"ID": "20260618123536-kia0ioy",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-kia0ioy",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "查看已注册的工作空间信息。"
}
]
},
{
"ID": "20260618123536-4umjlmm",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-4umjlmm",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出所有已注册的工作空间"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace info"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "显示当前工作空间详情"
}
]
}
]
}
]
},
{
"ID": "20260618123536-zn6ig8h",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-zn6ig8h",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan workspace list\nsiyuan workspace info\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-zqxmelk",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-zqxmelk",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "笔记本"
}
]
},
{
"ID": "20260618123536-1x64lgm",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-1x64lgm",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理笔记本的创建、重命名、打开和关闭。"
}
]
},
{
"ID": "20260618123536-n0nz5yg",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-n0nz5yg",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出所有笔记本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook create"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--name"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "创建笔记本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除笔记本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook rename"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --name"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "重命名笔记本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook open"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "打开笔记本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook close"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "关闭笔记本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook set-icon"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--icon"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "设置笔记本图标"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "notebook random-icon"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "从内置 emoji 随机设置笔记本图标"
}
]
}
]
}
]
},
{
"ID": "20260618123536-t26z30k",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-t26z30k",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan notebook list\nsiyuan notebook create --name \"我的笔记本\"\nsiyuan notebook remove --id notebook-id\nsiyuan notebook rename --id notebook-id --name \"新名称\"\nsiyuan notebook open --id notebook-id\nsiyuan notebook close --id notebook-id\nsiyuan notebook set-icon --id notebook-id --icon \"1f4ca\"\nsiyuan notebook random-icon --id notebook-id\nsiyuan notebook random-icon\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-vllx285",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-vllx285",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "文档"
}
]
},
{
"ID": "20260618123536-reoawxi",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-reoawxi",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理文档的创建、查询、移动和删除。"
}
]
},
{
"ID": "20260618123536-fofrsyu",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-fofrsyu",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--hpath"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出笔记本下的文档"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document create"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--title"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--markdown"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "创建文档"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取文档内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除文档"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document rename"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --title"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "重命名文档"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document move"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--hpath"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "移动文档"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document duplicate"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "复制文档"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document info"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取文档元信息"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document search"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<keyword>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按关键词搜索文档"
}
]
}
]
}
]
},
{
"ID": "20260618123536-hbx45tm",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-hbx45tm",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan document list --notebook notebook-id\nsiyuan document list --notebook notebook-id --hpath \"/文件夹\"\n\nsiyuan document create --notebook notebook-id --title \"新文档\"\nsiyuan document create --notebook notebook-id --title \"新文档\" --path \"/文件夹\"\nsiyuan document create --notebook notebook-id --title \"新文档\" --markdown \"# 标题\"\n\nsiyuan document get --id doc-id\nsiyuan document remove --id doc-id\nsiyuan document rename --id doc-id --title \"新标题\"\nsiyuan document duplicate --id doc-id\nsiyuan document info --id doc-id\nsiyuan document search \"关键词\"\n\nsiyuan document move --id doc-id --notebook target-nb\nsiyuan document move --id doc-id --notebook target-nb --hpath \"/目标文件夹\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-dqkkd2b",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-dqkkd2b",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": "块操作"
}
]
},
{
"ID": "20260618123536-gy6d6pd",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-gy6d6pd",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "对文档中的块进行查询、插入、更新、删除和移动。内容可通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": " 直接写入,也可通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": " 从文件读取。"
}
]
},
{
"ID": "20260618123536-2s00uhu",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-2s00uhu",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取块信息"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block children"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取子块列表"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block breadcrumb"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取面包屑路径"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block dom"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取块 DOM 树"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block kramdown"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取块 kramdown"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block stat"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取文档统计信息"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block insert"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--parent"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--previous"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "插入新块"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block append"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--parent"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "追加子块"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block prepend"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--parent"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "前置子块"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block update"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "更新块内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block delete"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除块"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block move"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --parent"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--previous"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "移动块"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block batch-get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ids"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "批量获取块信息"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block batch-kramdown"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ids"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "批量获取块 kramdown"
}
]
}
]
}
]
},
{
"ID": "20260618123536-qjkychl",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-qjkychl",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan block get --id block-id\nsiyuan block children --id block-id\nsiyuan block breadcrumb --id block-id\nsiyuan block dom --id block-id\nsiyuan block kramdown --id block-id\nsiyuan block kramdown --id block-id --mode md\nsiyuan block stat --id doc-id\n\nsiyuan block insert --parent parent-id --data \"# 新标题\"\nsiyuan block insert --parent parent-id --file ./content.md\nsiyuan block insert --parent parent-id --data \"段落\" --previous sibling-id\n\nsiyuan block append --parent parent-id --data \"- 列表项\"\nsiyuan block append --parent parent-id --file ./content.md\n\nsiyuan block prepend --parent parent-id --data \"> 引用\"\n\nsiyuan block update --id block-id --data \"修改后内容\"\nsiyuan block update --id block-id --file ./content.md\n\nsiyuan block delete --id block-id\n\nsiyuan block move --id block-id --parent target-id\nsiyuan block move --id block-id --parent target-id --previous sibling-id\n\nsiyuan block batch-get --ids \"id1,id2,id3\"\nsiyuan block batch-kramdown --ids \"id1,id2,id3\"\nsiyuan block update --id block-id --data \"updated content\" --lock-type\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-7ev1xlt",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-7ev1xlt",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "大纲"
}
]
},
{
"ID": "20260618123536-j30hp16",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-j30hp16",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "获取文档的标题大纲树。"
}
]
},
{
"ID": "20260618123536-pwd8jr4",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-pwd8jr4",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "outline get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取文档标题大纲"
}
]
}
]
}
]
},
{
"ID": "20260618123536-ptc5rwr",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-ptc5rwr",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan outline get --id doc-id\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-erb905s",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-erb905s",
"updated": "20261024160716"
},
"Children": [
{
"Type": "NodeText",
"Data": "搜索"
}
]
},
{
"ID": "20260618123536-e9wu5ih",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-e9wu5ih",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "支持按笔记本、路径和块类型过滤,并提供多种搜索方法与排序。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--method 4"
},
{
"Type": "NodeText",
"Data": " 是语义搜索,需要启用嵌入模型并准备嵌入索引;请先在应用中按 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260804171001-semnt01",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "语义搜索"
},
{
"Type": "NodeText",
"Data": " 完成配置和索引。资源文件搜索只支持方法 0–3。"
}
]
},
{
"ID": "20260618123536-qrjmvmd",
"Type": "NodeTable",
"TableAligns": [
0,
0
],
"Properties": {
"colgroup": "|",
"id": "20260618123536-qrjmvmd",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<query>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "搜索关键词(必填)"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook -n"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按笔记本过滤,可重复"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按路径过滤,可重复"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type -t"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按块类型过滤(document/heading/paragraph/list 等),可重复"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--subtype"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按子类型过滤:h1 至 h6 为标题级别;list:o/u/t 为列表块,listItem:o/u/t 为列表项块(o=有序、u=无序、t=任务),可重复指定;不再支持裸 o/u/t"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--method -m"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "搜索方法:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " 关键词 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " 查询语法 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " SQL "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " 正则 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " 语义搜索"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--order-by -o"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "排序方式:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " 按类型 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " 创建升序 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " 创建降序 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " 更新升序 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " 更新降序 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "5"
},
{
"Type": "NodeText",
"Data": " 按内容 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "6"
},
{
"Type": "NodeText",
"Data": " 相关性升序 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "7"
},
{
"Type": "NodeText",
"Data": " 相关性降序"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page -p"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "页码"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page-size -s"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "每页条数"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--group-by -g"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "分组:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " 不分组 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " 按文档分组"
}
]
}
]
}
]
},
{
"ID": "20260618123536-obikelg",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-obikelg",
"updated": "20261024160716"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan search \"关键词\"\nsiyuan search \"关键词\" --notebook box1 --notebook box2\nsiyuan search \"关键词\" --path \"/目录\"\nsiyuan search \"关键词\" --type document --type heading\nsiyuan search \"关键词\" --type listItem --subtype listItem:o --subtype listItem:u\nsiyuan search \"SELECT * FROM blocks WHERE type='h' LIMIT 20\" --method 2\nsiyuan search \"关键词\" --order-by 4 --page 1 --page-size 20\nsiyuan search \"关键词\" --group-by 1\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260704120000-756f755",
"Type": "NodeParagraph",
"Properties": {
"id": "20260704120000-756f755",
"updated": "20260704120000"
},
"Children": [
{
"Type": "NodeText",
"Data": "加上 --asset 可改为搜索资源文件(PDF/Word/Excel/txt 等)的内容索引,用 --ext 按扩展名过滤(可重复)。该模式下 --method 仅支持 0-3,--order-by 取值为 0 相关性降序、1 相关性升序、2 更新升序、3 更新降序。"
}
]
},
{
"ID": "20260704120100-88e7f54",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260704120100-88e7f54",
"updated": "20260704120100"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan search \"关键词\" --asset\nsiyuan search \"关键词\" --asset --ext pdf --ext docx\nsiyuan search \"关键词\" --asset --method 3 --order-by 3\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260704130000-c9ec96c",
"Type": "NodeParagraph",
"Properties": {
"id": "20260704130000-c9ec96c",
"updated": "20260704130000"
},
"Children": [
{
"Type": "NodeText",
"Data": "加上 --get-asset 改为按路径获取单个资源文件的完整已索引内容(位置参数作为路径,如 assets/report.pdf)。适合在 --asset 搜索后取某个文件的全文。"
}
]
},
{
"ID": "20260704130100-5f8f8ec",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260704130100-5f8f8ec",
"updated": "20260704130100"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan search \"assets/report.pdf\" --get-asset\nsiyuan search \"assets/report.pdf\" --get-asset --format json\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-w9wrzh2",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-w9wrzh2",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "SQL 查询"
}
]
},
{
"ID": "20260618123536-2i0u98j",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-2i0u98j",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "对系统表执行只读 SQL 查询,用于数据统计分析。"
}
]
},
{
"ID": "20260618123536-riuk94x",
"Type": "NodeTable",
"TableAligns": [
0,
0
],
"Properties": {
"colgroup": "|",
"id": "20260618123536-riuk94x",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<statement>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "SQL SELECT 语句(必填)"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--limit -l"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "最大返回行数,默认 100"
}
]
}
]
}
]
},
{
"ID": "20260618123536-38mamb9",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-38mamb9",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan sql \"SELECT * FROM blocks WHERE type='d'\"\nsiyuan sql \"SELECT id, content FROM blocks WHERE type='h'\" --limit 50\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-sbfnjf8",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-sbfnjf8",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "同步"
}
]
},
{
"ID": "20260618123536-sk5cc6z",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-sk5cc6z",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "将数据上传到云端或从云端下载。"
}
]
},
{
"ID": "20260618123536-x5mo02q",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-x5mo02q",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sync push"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "上传到云端"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sync pull"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "从云端下载"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sync status"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "查看同步状态"
}
]
}
]
}
]
},
{
"ID": "20260618123536-rmcosj5",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-rmcosj5",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan sync push\nsiyuan sync pull\nsiyuan sync status\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-j2jjfdn",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-j2jjfdn",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "导出"
}
]
},
{
"ID": "20260618123536-4s61zaa",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-4s61zaa",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "导出文档到不同格式,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": " 指定输出文件。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": " 仅打包工作空间的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "data"
},
{
"Type": "NodeText",
"Data": " 目录,存在任何加密笔记本时会拒绝执行。支持的应用内备份与恢复方式见 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260907120000-crycn01",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "加密笔记本"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20260618123536-w0ad7f0",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-w0ad7f0",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export md"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出 Markdown"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export html"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出 HTML"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export preview"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出预览 HTML"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export docx"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --output"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出 Word("
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": " 必填)"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export sy"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出 .sy.zip"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export md-zip"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出 Markdown zip"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "仅导出 data 目录;存在任何加密笔记本时不可用"
}
]
}
]
}
]
},
{
"ID": "20260618123536-klaumvt",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-klaumvt",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan export md --id doc-id\nsiyuan export md --id doc-id --output ./output.md\nsiyuan export html --id doc-id --output ./output.html\nsiyuan export preview --id doc-id --output ./preview.html\nsiyuan export docx --id doc-id --output ./output.docx\nsiyuan export sy --id doc-id --output ./backup.sy.zip\nsiyuan export md-zip --id doc-id --output ./archive.zip\nsiyuan export data --output ./data-backup.zip\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-8wfiac6",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-8wfiac6",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "导入"
}
]
},
{
"ID": "20260618123536-weyx08c",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-weyx08c",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "将外部文件导入到指定笔记本。"
}
]
},
{
"ID": "20260618123536-m2ed8fp",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-m2ed8fp",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "import md"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--hpath"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导入 Markdown 文件或目录"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "import sy"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--hpath"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导入 .sy.zip"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "import data"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导入 data 目录备份"
}
]
}
]
}
]
},
{
"ID": "20260618123536-938zqkt",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-938zqkt",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan import md --file ./notes --notebook notebook-id\nsiyuan import md --file ./doc.md --notebook notebook-id --hpath \"/导入目录\"\nsiyuan import sy --file ./backup.sy.zip --notebook notebook-id\nsiyuan import data --file ./data-backup.zip\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260630162856-ecgwf4s",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260630162856-ecgwf4s",
"updated": "20260630162856"
},
"Children": [
{
"Type": "NodeText",
"Data": "收集箱"
}
]
},
{
"ID": "20260630162856-yr59l5e",
"Type": "NodeParagraph",
"Properties": {
"id": "20260630162856-yr59l5e",
"updated": "20260630162856"
},
"Children": [
{
"Type": "NodeText",
"Data": "列出、阅读云端收集箱剪藏(网页、消息、附件等),并把它们转换为本地文档。需要订阅会员。"
}
]
},
{
"ID": "20260630162856-ov4f5zq",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260630162856-ov4f5zq",
"updated": "20260630162856"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "Command"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "Arguments"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "Description"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "inbox list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "分页列出云端收集箱剪藏"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "inbox get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取单条剪藏的完整 markdown"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "inbox convert"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ids"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--remove-after"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "把剪藏转换为本地文档"
}
]
}
]
}
]
},
{
"ID": "20260630162856-rrxemsf",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260630162856-rrxemsf",
"updated": "20260630162856"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan inbox list\nsiyuan inbox list --page 2\n\nsiyuan inbox get --id shorthand-id\n\nsiyuan inbox convert --ids \"id1,id2\" --notebook notebook-id\nsiyuan inbox convert --ids \"id1,id2\" --notebook notebook-id --path \"/文件夹\"\nsiyuan inbox convert --ids \"id1\" --notebook notebook-id --remove-after=false\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-liadhp6",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-liadhp6",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "数据历史"
}
]
},
{
"ID": "20260618123536-u5n2k1f",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-u5n2k1f",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "查看和管理文档的历史版本。"
}
]
},
{
"ID": "20260618123536-3kcv4d3",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-3kcv4d3",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "history list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--op"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出历史记录"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "history search"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<query>"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--op"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "搜索历史"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "history get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取历史版本内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "history rollback"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "回滚到历史版本"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "history clear"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "清除全部历史"
}
]
}
]
}
]
},
{
"ID": "20260618123536-oxpn040",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-oxpn040",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--op"
},
{
"Type": "NodeText",
"Data": ":"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "delete"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "update"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "create"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260618123536-forzk1i",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-forzk1i",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": ":"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " 按文档名称 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " 按内容 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " 按资源文件 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " 按文档 ID | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " 按数据库"
}
]
},
{
"ID": "20260618123536-h5po93q",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-h5po93q",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan history list\nsiyuan history list --notebook notebook-id --op delete --type 0 --page 1\nsiyuan history search \"关键词\" --notebook notebook-id --op update\nsiyuan history get --path \"history/...\"\nsiyuan history rollback --path \"history/...\"\nsiyuan history clear\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-rsxrvmn",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-rsxrvmn",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "数据快照"
}
]
},
{
"ID": "20260618123536-6ozq7my",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-6ozq7my",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "创建和管理工作空间快照,支持回滚和文件级恢复。"
}
]
},
{
"ID": "20260618123536-rijia31",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-rijia31",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--tag"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出快照"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo create"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--memo"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "创建新快照"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo tag"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --name"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "标记快照"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo untag"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--name"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "移除标记"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo checkout"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "回滚到快照"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo diff"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--left --right"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "对比两个快照"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo search"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<keyword>"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "搜索快照中的文件"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo purge"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "清理旧快照"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo file get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取快照中的文件内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo file rollback"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "从快照回滚单个文件"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo file open"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "预览快照文件"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo file export"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "导出快照文件"
}
]
}
]
}
]
},
{
"ID": "20260618123536-xrhq5cg",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-xrhq5cg",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan repo list\nsiyuan repo list --tag --page 1\nsiyuan repo create --memo \"升级前备份\"\nsiyuan repo tag --id snapshot-id --name \"v1.0\"\nsiyuan repo untag --name \"v1.0\"\nsiyuan repo checkout --id snapshot-id\nsiyuan repo diff --left id1 --right id2\nsiyuan repo search \"关键词\"\nsiyuan repo purge\nsiyuan repo file get --id file-id\nsiyuan repo file rollback --id file-id\nsiyuan repo file open --id file-id\nsiyuan repo file export --id file-id\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-h4h7b4m",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-h4h7b4m",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "反向链接与提及"
}
]
},
{
"ID": "20260618123536-ypedipe",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-ypedipe",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "查看块的反向链接和提及关系,刷新反向链接索引。"
}
]
},
{
"ID": "20260618123536-7bzq1xl",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-7bzq1xl",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ref backlinks"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--keyword"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--sort"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取反向链接"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ref mentions"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--keyword"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--sort"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取提及"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ref refresh"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "刷新反向链接索引"
}
]
}
]
}
]
},
{
"ID": "20260618123536-j3wrasp",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-j3wrasp",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--sort"
},
{
"Type": "NodeText",
"Data": ":"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " 更新降序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " 更新升序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " 创建降序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " 创建升序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " 名称降序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "5"
},
{
"Type": "NodeText",
"Data": " 名称升序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "6"
},
{
"Type": "NodeText",
"Data": " 数字字母降序 | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "7"
},
{
"Type": "NodeText",
"Data": " 数字字母升序"
}
]
},
{
"ID": "20260618123536-9ulova1",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-9ulova1",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan ref backlinks --id block-id\nsiyuan ref backlinks --id block-id --keyword \"过滤词\" --sort 4\nsiyuan ref mentions --id block-id\nsiyuan ref refresh --id block-id\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-dbt2gvc",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-dbt2gvc",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "标签"
}
]
},
{
"ID": "20260618123536-60d2mm9",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-60d2mm9",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理标签的查看、重命名和删除。"
}
]
},
{
"ID": "20260618123536-zjyvrz8",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-zjyvrz8",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "tag list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--keyword"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出或搜索标签"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "tag remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--label"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除标签"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "tag rename"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--old --new"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "重命名标签"
}
]
}
]
}
]
},
{
"ID": "20260618123536-u1wqjvv",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-u1wqjvv",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan tag list\nsiyuan tag list --keyword \"项目\"\nsiyuan tag remove --label \"待办\"\nsiyuan tag rename --old \"旧\" --new \"新\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-aynb0nj",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-aynb0nj",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "块属性"
}
]
},
{
"ID": "20260618123536-kb939kb",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-kb939kb",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "获取和设置块的自定义属性。"
}
]
},
{
"ID": "20260618123536-0nxdbr6",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-0nxdbr6",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "attr get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取块的内置属性和自定义属性"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "attr set"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --attr key=value"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "设置属性("
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--attr"
},
{
"Type": "NodeText",
"Data": " 可重复)"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "attr batch-get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ids id1,id2,..."
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "批量获取属性"
}
]
}
]
}
]
},
{
"ID": "20260618123536-pgamjid",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-pgamjid",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan attr get --id block-id\nsiyuan attr set --id block-id --attr icon=1f4ca\nsiyuan attr set --id block-id --attr tags=\"标签1, 标签2\" --attr custom-key=custom-value\nsiyuan attr batch-get --ids \"id1,id2,id3\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-an258qy",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-an258qy",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "资源文件"
}
]
},
{
"ID": "20260618123536-3k3zyb9",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-3k3zyb9",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理文档中的资源文件。"
}
]
},
{
"ID": "20260618123536-63e6e8c",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-63e6e8c",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "asset upload"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --file"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "上传资源文件("
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": " 可重复)"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "asset unused"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出未使用的资源"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "asset clean"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "清理未使用的资源"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "asset stat"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "查看资源文件信息"
}
]
}
]
}
]
},
{
"ID": "20260618123536-nt1fed7",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-nt1fed7",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan asset upload --id doc-id --file ./image.png --file ./doc.pdf\nsiyuan asset unused\nsiyuan asset clean\nsiyuan asset clean --path \"assets/xxx.png\"\nsiyuan asset stat --path \"assets/image/xxx.png\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-cwj02rc",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-cwj02rc",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "书签"
}
]
},
{
"ID": "20260618123536-rdck4dj",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-rdck4dj",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理书签的查看、重命名和删除。"
}
]
},
{
"ID": "20260618123536-krb1uil",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-krb1uil",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "bookmark list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出书签"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "bookmark labels"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出书签标签"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "bookmark remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--label"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除书签"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "bookmark rename"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--old --new"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "重命名书签"
}
]
}
]
}
]
},
{
"ID": "20260618123536-b45z2l9",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-b45z2l9",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan bookmark list\nsiyuan bookmark labels\nsiyuan bookmark remove --label \"书签名\"\nsiyuan bookmark rename --old \"旧\" --new \"新\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-nyu2mbp",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-nyu2mbp",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "数据库"
}
]
},
{
"ID": "20260618123536-6qc9ry1",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-6qc9ry1",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理数据库的字段、行和视图。"
}
]
},
{
"ID": "20260618123536-7ua1hat",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-7ua1hat",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database search"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<keyword>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "搜索数据库"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "获取数据库详情"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database render"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--view"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--query"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--page"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--size"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "渲染数据库表格"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database keys"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出所有字段"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database unused"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出未使用的数据库"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database clean"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "清理未使用的数据库"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database key add"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--name"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--icon"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--prev"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "添加字段"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database key remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--key"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--remove-relation-dest"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除字段"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database item add"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--block"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--content"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--view"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--group"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--previous"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--detached"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ignore-default-fill"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "添加行"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database item remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ids"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除行"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "database item update"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--av"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--key"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--item"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--value"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "更新单元格"
}
]
}
]
}
]
},
{
"ID": "20260618123536-g5phsr2",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-g5phsr2",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": " 字段类型:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "text"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "number"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "date"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "select"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "mSelect"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "url"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "email"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "phone"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "location"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "mAsset"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "created"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "updated"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "checkbox"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "relation"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "rollup"
},
{
"Type": "NodeText",
"Data": " / "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "lineNumber"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260618123536-1ry9zo5",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-1ry9zo5",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan database search \"关键词\"\nsiyuan database get --av db-id\nsiyuan database render --av db-id --view view-id --query \"筛选\" --page 1 --size 50\nsiyuan database keys --av db-id\n\nsiyuan database key add --av db-id --name \"状态\" --type select\nsiyuan database key add --av db-id --name \"金额\" --type number --icon 1f4b0\nsiyuan database key add --av db-id --name \"备注\" --type text --prev previous-key-id\nsiyuan database key remove --av db-id --key key-id --remove-relation-dest\n\nsiyuan database unused\nsiyuan database clean\nsiyuan database clean --av db-id\n\nsiyuan database item add --av db-id\nsiyuan database item add --av db-id --block block-id --content \"文本\"\nsiyuan database item add --av db-id --view view-id --previous prev-id\nsiyuan database item remove --av db-id --ids \"item1,item2\"\nsiyuan database item update --av db-id --key key-id --item item-id --value '{\"content\": \"新值\"}'\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-hc1ig16",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-hc1ig16",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "日记"
}
]
},
{
"ID": "20260618123536-54iyubu",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-54iyubu",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理每日笔记的创建和内容追加。"
}
]
},
{
"ID": "20260618123536-ple1m7r",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-ple1m7r",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "dailynote create"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "创建今日日记"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "dailynote append"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "向今日日记追加内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "dailynote prepend"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "向今日日记前置内容"
}
]
}
]
}
]
},
{
"ID": "20260618123536-yf0myji",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-yf0myji",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan dailynote create --notebook notebook-id\nsiyuan dailynote append --notebook notebook-id --data \"- [ ] 待办\"\nsiyuan dailynote append --notebook notebook-id --file ./content.md\nsiyuan dailynote prepend --notebook notebook-id --data \"## 今日重点\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-cso9051",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-cso9051",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": "模板"
}
]
},
{
"ID": "20260618123536-dfb0you",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-dfb0you",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "管理模板文件,支持搜索、创建、渲染和将文档另存为模板。模板路径为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "data/templates"
},
{
"Type": "NodeText",
"Data": " 下的相对路径。"
}
]
},
{
"ID": "20260618123536-xstbjyi",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-xstbjyi",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template search"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "[keyword]"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "搜索模板,关键词为空时列出全部"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template get"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "读取模板内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template create"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--name"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeBackslash",
"Data": "span",
"Children": [
{
"Type": "NodeText",
"Data": "|"
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--overwrite"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "从 Markdown 内容创建模板"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template render"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path --id"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "以指定块为上下文预览渲染模板"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template save-as"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id --name"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--overwrite"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "将文档另存为模板"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "template remove"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--path"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除模板"
}
]
}
]
}
]
},
{
"ID": "20260618123536-3or08xu",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-3or08xu",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan template search\nsiyuan template search \"会议\"\nsiyuan template get --path 周报.md\nsiyuan template create --name \"周报\" --data \"# 周报\"\nsiyuan template create --name \"周报\" --file ./weekly.md\nsiyuan template create --name \"周报\" --data \"# 周报\" --overwrite\nsiyuan template render --path 周报.md --id doc-id\nsiyuan template save-as --id doc-id --name \"会议纪要\"\nsiyuan template save-as --id doc-id --name \"会议纪要\" --overwrite\nsiyuan template remove --path 周报.md\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618123536-j9uixg4",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-j9uixg4",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "工作空间文件操作"
}
]
},
{
"ID": "20260618123536-za3emdh",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-za3emdh",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "操作工作空间内的文件,所有路径均为工作空间相对路径。"
}
]
},
{
"ID": "20260618123536-ij7dzwp",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-ij7dzwp",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<path>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "列出目录内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file read"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<path>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "读取文件内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file write"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<path>"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": " "
},
{
"Type": "NodeText",
"Data": "["
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "写入文件"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file delete"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<path>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "删除文件或目录"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file rename"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<old> <new>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "重命名或移动文件"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file copy"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<src> <dst>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "复制文件或目录"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file grep"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--pattern --path"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--include"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--context"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--limit"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按正则搜索文件内容"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file find"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<path>"
},
{
"Type": "NodeText",
"Data": " ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--include"
},
{
"Type": "NodeText",
"Data": "] ["
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--limit"
},
{
"Type": "NodeText",
"Data": "]"
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "按通配符查找文件"
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file stat"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<path>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "查看文件或目录信息"
}
]
}
]
}
]
},
{
"ID": "20260618123536-t5jb7t9",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-t5jb7t9",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan file list /temp\nsiyuan file read /temp/readme.md\nsiyuan file write /temp/new.txt --file ./localfile.txt\nsiyuan file delete /temp/temp\nsiyuan file rename /temp/old /temp/new\nsiyuan file copy /temp/src /temp/dst\nsiyuan file grep --pattern \"TODO\" --path /temp\nsiyuan file grep --pattern \"func \" --path /temp --include \"*.go\" --context 2\nsiyuan file find /temp --include \"*.md\"\nsiyuan file stat /temp/readme.md\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260809180000-5cbbbae",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260809180000-5cbbbae",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "服务器"
}
]
},
{
"ID": "20260809180000-b8412b8",
"Type": "NodeParagraph",
"Properties": {
"id": "20260809180000-b8412b8",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "启动 HTTP 服务。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " 选择工作空间数据目录;"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--wd"
},
{
"Type": "NodeText",
"Data": " 选择包含 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "appearance/"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "stage/"
},
{
"Type": "NodeText",
"Data": " 的程序资源目录,通常会自动查找。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--port"
},
{
"Type": "NodeText",
"Data": " 指定端口,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--readonly"
},
{
"Type": "NodeText",
"Data": " 设置只读模式,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--accessAuthCode"
},
{
"Type": "NodeText",
"Data": " 设置访问鉴权码,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--lang"
},
{
"Type": "NodeText",
"Data": " 设置界面语言,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode"
},
{
"Type": "NodeText",
"Data": " 设置 dev 或 prod 模式,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ssl"
},
{
"Type": "NodeText",
"Data": " 启用 HTTPS 和 WSS,"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--safe-mode"
},
{
"Type": "NodeText",
"Data": " 启用安全模式。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--attach-ui"
},
{
"Type": "NodeText",
"Data": " 仅供 Electron 内部使用。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--enable-pprof"
},
{
"Type": "NodeText",
"Data": " 会公开无需鉴权的进程诊断信息,只能用于本地开发。"
}
]
},
{
"ID": "20260809180000-a25e336",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260809180000-a25e336",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```",
"CodeBlockFenceLen": 3
},
{
"Type": "NodeCodeBlockFenceInfoMarker"
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan serve --workspace /path/to/workspace --port 6806\nsiyuan serve --workspace /path/to/workspace --port 6806 --readonly true\nsiyuan serve --workspace /path/to/workspace --port 6806 --wd /path/to/resources --lang zh-CN --ssl\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```",
"CodeBlockFenceLen": 3
}
]
},
{
"ID": "20260618123536-xipka6g",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618123536-xipka6g",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "系统"
}
]
},
{
"ID": "20260618123536-ae90ntz",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618123536-ae90ntz",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeText",
"Data": "查看系统信息。"
}
]
},
{
"ID": "20260618123536-be0rqub",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618123536-be0rqub",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "命令"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "参数"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "说明"
}
]
}
]
}
]
},
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "system current-time"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "显示当前服务端时间"
}
]
}
]
}
]
},
{
"ID": "20260618123536-b3k1r4p",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618123536-b3k1r4p",
"updated": "20260618123536"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan system current-time\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
}
]
}