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": "20260612192252-sgw2paw",
"Spec": "2",
"Type": "NodeDocument",
"Properties": {
"id": "20260612192252-sgw2paw",
"title": "Command Line Interface",
"type": "doc",
"updated": "20261024164212"
},
"Children": [
{
"ID": "20260618124055-zbur9oi",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-zbur9oi",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Overview"
}
]
},
{
"ID": "20260618124055-7xuwk04",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-7xuwk04",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "SiYuan ships with a built-in CLI (Command Line Interface) that accesses workspace data directly, with no need to start the kernel server. It is well suited for scripting, batch management, and read/write operations on notes in conjunction with AI agents."
}
]
},
{
"ID": "20260618124055-b5vmv3w",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-b5vmv3w",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan [global flags] <command> [arguments]"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260618124055-rle3i8e",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-rle3i8e",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeText",
"Data": "Installation"
}
]
},
{
"ID": "20260618124055-ca51lll",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-ca51lll",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "The CLI binary is "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "<install-dir>/resources/kernel/SiYuan-Kernel"
},
{
"Type": "NodeText",
"Data": ", invoked via the "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan"
},
{
"Type": "NodeText",
"Data": " command."
}
]
},
{
"ID": "20260618124055-ksybbk0",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20260618124055-ksybbk0",
"updated": "20261006133358"
},
"Children": [
{
"ID": "20260618124055-fh52ukj",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-fh52ukj",
"updated": "20261006133358"
},
"Children": [
{
"ID": "20260618124055-mo52pph",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-mo52pph",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "strong",
"TextMarkTextContent": "Windows"
},
{
"Type": "NodeText",
"Data": ": the installer automatically adds the kernel directory to "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "PATH"
},
{
"Type": "NodeText",
"Data": ", so "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan"
},
{
"Type": "NodeText",
"Data": " works out of the box"
},
{
"Type": "NodeText",
"Data": ". The Microsoft Store edition (3.8.7+) registers the "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan.exe"
},
{
"Type": "NodeText",
"Data": " app execution alias on Windows 10 1607 (build 14393) or later. After installing or updating, open a new terminal and run "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan --help"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260708120000-enstore1",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260708120000-enstore1",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "cG93ZXJzaGVsbA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan --help\n\n# Check which command is being used\nGet-Command siyuan -All\nwhere.exe siyuan\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20261006133358-auz3ewz",
"Type": "NodeParagraph",
"Properties": {
"id": "20261006133358-auz3ewz",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeText",
"Data": "If the command is unavailable, check that the SiYuan app execution alias is enabled in Windows and "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "%LOCALAPPDATA%\\Microsoft\\WindowsApps"
},
{
"Type": "NodeText",
"Data": " is in "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "PATH"
},
{
"Type": "NodeText",
"Data": ". The commands above show command resolution; multiple SiYuan editions or "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "PATH"
},
{
"Type": "NodeText",
"Data": " order may select another executable"
}
]
},
{
"ID": "20260708130000-enuninst",
"Type": "NodeParagraph",
"Properties": {
"id": "20260708130000-enuninst",
"updated": "20261006133358"
},
"Children": [
{
"Type": "NodeText",
"Data": "If you created the old "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "siyuan.cmd"
},
{
"Type": "NodeText",
"Data": " shim, first verify the Store alias directly with "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "& \"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\siyuan.exe\" --help"
},
{
"Type": "NodeText",
"Data": ", then optionally remove the shim: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "Remove-Item \"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\siyuan.cmd\""
}
]
}
]
},
{
"ID": "20260618124055-jnzcmnb",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-jnzcmnb",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-6a06v4p",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-6a06v4p",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "strong",
"TextMarkTextContent": "macOS"
},
{
"Type": "NodeText",
"Data": ": create a symlink after installing"
}
]
},
{
"ID": "20260618124055-imxvuf8",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-imxvuf8",
"updated": "20260618124055"
},
"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": "20260618124055-6ezu4j5",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-6ezu4j5",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-dzowbv1",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-dzowbv1",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "strong",
"TextMarkTextContent": "Linux"
},
{
"Type": "NodeText",
"Data": ": create a symlink after installing"
}
]
},
{
"ID": "20260618124055-umsn3ad",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-umsn3ad",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "ln -s <install-dir>/resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
}
]
}
]
},
{
"ID": "20260618124055-jh5iqpd",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-jh5iqpd",
"updated": "20261024164212"
},
"Children": [
{
"Type": "NodeText",
"Data": "Global Flags"
}
]
},
{
"ID": "20260618124055-ynt2ojn",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0,
0
],
"Properties": {
"colgroup": "|||",
"id": "20260618124055-ynt2ojn",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "Flag"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "Short"
}
]
},
{
"Type": "NodeTableCell",
"Data": "th",
"Children": [
{
"Type": "NodeText",
"Data": "Default"
}
]
},
{
"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": "--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": ", otherwise "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~/SiYuan"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "Specify the workspace directory"
}
]
}
]
},
{
"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": "Output format: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "table"
},
{
"Type": "NodeText",
"Data": " or "
},
{
"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": "Preview supported changes without performing them"
}
]
}
]
},
{
"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": "Log level: off, trace, debug, info, warn, error, or fatal"
}
]
}
]
}
]
},
{
"ID": "20260618124055-swngu6n",
"Type": "NodeBlockquote",
"Properties": {
"id": "20260618124055-swngu6n",
"updated": "20261024164212"
},
"Children": [
{
"Type": "NodeBlockquoteMarker",
"Data": ">"
},
{
"ID": "20260618124055-0ha7g1k",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-0ha7g1k",
"updated": "20261024164212"
},
"Children": [
{
"Type": "NodeText",
"Data": "For ordinary one-shot commands, always pass "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " in scripts to avoid selecting unintended data. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace info"
},
{
"Type": "NodeText",
"Data": " may fall back to the last registered workspace, while "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "serve"
},
{
"Type": "NodeText",
"Data": " follows "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20200924100717-yzwzn64",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "Kernel parameter"
},
{
"Type": "NodeText",
"Data": " and uses the configured log level unless "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--log-level"
},
{
"Type": "NodeText",
"Data": " is specified."
}
]
},
{
"ID": "20261024164212-lljcdmt",
"Type": "NodeParagraph",
"Properties": {
"id": "20261024164212-lljcdmt",
"updated": "20261024164212"
},
"Children": [
{
"Type": "NodeText",
"Data": "Use "
},
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--format json"
},
{
"Type": "NodeText",
"Data": " only with commands that support it. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": " previews supported changes; it does not guarantee that a real operation will pass every check."
}
]
}
]
},
{
"ID": "20260618124055-t91bvr3",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-t91bvr3",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Argument Conventions"
}
]
},
{
"ID": "20260618124055-vn8bqmr",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20260618124055-vn8bqmr",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-wybrlzm",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-wybrlzm",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-uto20ot",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-uto20ot",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Arguments start with "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--"
},
{
"Type": "NodeText",
"Data": " followed by a value, separated by a space. Example: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace /path"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618124055-p4gnz1l",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-p4gnz1l",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-drp63wj",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-drp63wj",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Arguments that have a short form can use it. Example: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "-w /path"
},
{
"Type": "NodeText",
"Data": " instead of "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace /path"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618124055-qqwp6o4",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-qqwp6o4",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-t9lqs1k",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-t9lqs1k",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "[ ]"
},
{
"Type": "NodeText",
"Data": " denotes optional arguments"
}
]
}
]
},
{
"ID": "20260618124055-nshcbgg",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-nshcbgg",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-hlb5a0p",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-hlb5a0p",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Value-less flags are used as-is. Example: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618124055-v6925xk",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-v6925xk",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-3jvc8n9",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-3jvc8n9",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Some arguments can be repeated. Example: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--notebook box1 --notebook box2"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
},
{
"ID": "20260618124055-s7a9roy",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-s7a9roy",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Locating Targets"
}
]
},
{
"ID": "20260618124055-xghhxqv",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20260618124055-xghhxqv",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-1ampk87",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-1ampk87",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-4vds00s",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-4vds00s",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--id"
},
{
"Type": "NodeText",
"Data": ": precise location by block ID, applies to most commands such as "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block"
},
{
"Type": "NodeText",
"Data": ", "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618124055-ubedr84",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-ubedr84",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-scjqtk3",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-scjqtk3",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--hpath"
},
{
"Type": "NodeText",
"Data": ": location by human-readable path (e.g. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "/folder/doc-name"
},
{
"Type": "NodeText",
"Data": "), applies to "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "document list/move"
},
{
"Type": "NodeText",
"Data": " and "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "import"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
},
{
"ID": "20260618124055-0d5xk2y",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260618124055-0d5xk2y",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-ov8dbnx",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-ov8dbnx",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--parent"
},
{
"Type": "NodeText",
"Data": ": location of an insertion or append point by parent block ID, applies to "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block insert/append/prepend/move"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
},
{
"ID": "20260618124055-203hgdc",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-203hgdc",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "Common Scenarios"
}
]
},
{
"ID": "20260618124055-0mkve1p",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-0mkve1p",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Scripted batch queries"
}
]
},
{
"ID": "20260618124055-e5v5ouu",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-e5v5ouu",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "search"
},
{
"Type": "NodeText",
"Data": " and "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sql"
},
{
"Type": "NodeText",
"Data": " support "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--format json"
},
{
"Type": "NodeText",
"Data": " for script processing. Check each command’s output contract: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file list"
},
{
"Type": "NodeText",
"Data": " prints a table and "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "file read"
},
{
"Type": "NodeText",
"Data": " prints raw content even when the global format is JSON."
}
]
},
{
"ID": "20260618124055-5zxo4nb",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-5zxo4nb",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Safe validation"
}
]
},
{
"ID": "20260618124055-g27mzcs",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-g27mzcs",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "For a mutating or deleting operation that supports "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": ", preview it first and review the "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "[dry-run] Would..."
},
{
"Type": "NodeText",
"Data": " output. This does not perform every check used during execution; verify the workspace and backup before removing the flag."
}
]
},
{
"ID": "20260618124055-jihpcoy",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-jihpcoy",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Batch note management"
}
]
},
{
"ID": "20260618124055-ei4t12w",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-ei4t12w",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Batch-write daily-note entries with "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "dailynote create"
},
{
"Type": "NodeText",
"Data": " + "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "block append"
},
{
"Type": "NodeText",
"Data": "; batch-set document icons and tags with "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "attr set"
},
{
"Type": "NodeText",
"Data": "."
}
]
},
{
"ID": "20260618124055-9r4ddp9",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-9r4ddp9",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "SQL data analysis"
}
]
},
{
"ID": "20260618124055-x94m4co",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-x94m4co",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "The "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sql"
},
{
"Type": "NodeText",
"Data": " command runs read-only SQL queries against system tables such as blocks, useful for statistics like block-type distribution or recently updated documents."
}
]
},
{
"ID": "20260618124055-2gzzo96",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-2gzzo96",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "Data backup"
}
]
},
{
"ID": "20260618124055-1xtluul",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-1xtluul",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "Use "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "repo create --memo \"checkpoint\""
},
{
"Type": "NodeText",
"Data": " for a snapshot checkpoint. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": " exports the full "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "data"
},
{
"Type": "NodeText",
"Data": " directory only, excluding "
},
{
"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": ", and other workspace directories. It is not a full workspace backup and is refused if any encrypted notebook exists."
}
]
},
{
"ID": "20260618124055-izg7yz7",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-izg7yz7",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "tag",
"TextMarkTextContent": "Note"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20260618124055-zn7ms1e",
"Type": "NodeList",
"ListData": {
"Typ": 1
},
"Properties": {
"id": "20260618124055-zn7ms1e",
"updated": "20261016112115"
},
"Children": [
{
"ID": "20260618124055-mdfeiu7",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "MS4=",
"Num": 1
},
"Properties": {
"id": "20260618124055-mdfeiu7",
"updated": "20261016112115"
},
"Children": [
{
"ID": "20260618124055-jq7uror",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-jq7uror",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Use "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--dry-run"
},
{
"Type": "NodeText",
"Data": " where supported to preview changes; a successful preview does not guarantee that execution will succeed"
}
]
}
]
},
{
"ID": "20260618124055-fusmp6p",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Properties": {
"id": "20260618124055-fusmp6p",
"updated": "20260618124055"
},
"Children": [
{
"ID": "20260618124055-8w2nx75",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-8w2nx75",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Before batch operations, create a snapshot or export a backup to make rollback easier"
}
]
}
]
},
{
"ID": "20261016112115-qd5nm28",
"Type": "NodeListItem",
"Properties": {
"id": "20261016112115-qd5nm28",
"updated": "20261016112115"
},
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Children": [
{
"ID": "20261016112115-fqgl6jw",
"Type": "NodeParagraph",
"Properties": {
"id": "20261016112115-fqgl6jw",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "One-shot CLI commands do not support encrypted notebooks, their blocks, raw files, history, or snapshot-file content, even if unlocked in the app. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": " is refused whenever the workspace contains an encrypted notebook. Export a data archive through "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Settings"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "App"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Data"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Export Data"
},
{
"Type": "NodeText",
"Data": " in the app and follow "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260907120000-cryen01",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "Encrypted Notebook"
},
{
"Type": "NodeText",
"Data": " for recovery; retain the matching key backup and master password separately"
}
]
}
]
}
]
},
{
"ID": "20260618124055-5xyayt6",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20260618124055-5xyayt6",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "Command Reference"
}
]
},
{
"ID": "20260618124055-t743b2w",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-t743b2w",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Help"
}
]
},
{
"ID": "20260618124055-0ismt95",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-0ismt95",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan --help # List all available commands\nsiyuan block --help # Show arguments for the block subcommand\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-7q8are7",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-7q8are7",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Workspace"
}
]
},
{
"ID": "20260618124055-03m5m7j",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-03m5m7j",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "View information about registered workspaces."
}
]
},
{
"ID": "20260618124055-pc4r2st",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-pc4r2st",
"updated": "20260618124055"
},
"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": "workspace list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "List all registered workspaces"
}
]
}
]
},
{
"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": "Show details of the current workspace"
}
]
}
]
}
]
},
{
"ID": "20260618124055-dne26o4",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-dne26o4",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan workspace list\nsiyuan workspace info\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-g4hrg8z",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-g4hrg8z",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Notebook"
}
]
},
{
"ID": "20260618124055-7g1y9a0",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-7g1y9a0",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage creation, renaming, opening, and closing of notebooks."
}
]
},
{
"ID": "20260618124055-1hhqqsj",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-1hhqqsj",
"updated": "20260618124055"
},
"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": "notebook list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "List all notebooks"
}
]
}
]
},
{
"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": "Create a notebook"
}
]
}
]
},
{
"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": "Remove a notebook"
}
]
}
]
},
{
"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": "Rename a notebook"
}
]
}
]
},
{
"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": "Open a notebook"
}
]
}
]
},
{
"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": "Close a notebook"
}
]
}
]
},
{
"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": "Set a notebook icon"
}
]
}
]
},
{
"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": "Randomly set notebook icon(s) from built-in emojis"
}
]
}
]
}
]
},
{
"ID": "20260618124055-v57htmt",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-v57htmt",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan notebook list\nsiyuan notebook create --name \"My Notebook\"\nsiyuan notebook remove --id notebook-id\nsiyuan notebook rename --id notebook-id --name \"New 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": "20260618124055-800rg2b",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-800rg2b",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Document"
}
]
},
{
"ID": "20260618124055-09frnln",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-09frnln",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage creation, lookup, moving, and deletion of documents."
}
]
},
{
"ID": "20260618124055-821ldk5",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-821ldk5",
"updated": "20260618124055"
},
"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": "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": "List documents in a notebook"
}
]
}
]
},
{
"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": "Create a document"
}
]
}
]
},
{
"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": "Get document content"
}
]
}
]
},
{
"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": "Remove a document"
}
]
}
]
},
{
"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": "Rename a document"
}
]
}
]
},
{
"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": "Move a document"
}
]
}
]
},
{
"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": "Duplicate a document"
}
]
}
]
},
{
"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": "Get document metadata"
}
]
}
]
},
{
"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": "Search documents by keyword"
}
]
}
]
}
]
},
{
"ID": "20260618124055-qdy1jdv",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-qdy1jdv",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan document list --notebook notebook-id\nsiyuan document list --notebook notebook-id --hpath \"/folder\"\n\nsiyuan document create --notebook notebook-id --title \"New Doc\"\nsiyuan document create --notebook notebook-id --title \"New Doc\" --path \"/folder\"\nsiyuan document create --notebook notebook-id --title \"New Doc\" --markdown \"# Title\"\n\nsiyuan document get --id doc-id\nsiyuan document remove --id doc-id\nsiyuan document rename --id doc-id --title \"New Title\"\nsiyuan document duplicate --id doc-id\nsiyuan document info --id doc-id\nsiyuan document search \"keyword\"\n\nsiyuan document move --id doc-id --notebook target-nb\nsiyuan document move --id doc-id --notebook target-nb --hpath \"/target-folder\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-o0i15h9",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-o0i15h9",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": "Block Operations"
}
]
},
{
"ID": "20260618124055-f4pf02t",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-f4pf02t",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Query, insert, update, delete, and move blocks within a document. Content can be supplied directly via "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--data"
},
{
"Type": "NodeText",
"Data": " or read from a file via "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": "."
}
]
},
{
"ID": "20260618124055-439om86",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-439om86",
"updated": "20260618124055"
},
"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": "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": "Get block info"
}
]
}
]
},
{
"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": "List child blocks"
}
]
}
]
},
{
"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": "Get the breadcrumb path"
}
]
}
]
},
{
"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": "Get the block DOM tree"
}
]
}
]
},
{
"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": "Get the block 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": "Get document statistics"
}
]
}
]
},
{
"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": "Insert a new block"
}
]
}
]
},
{
"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": "Append a child block"
}
]
}
]
},
{
"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": "Prepend a child block"
}
]
}
]
},
{
"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": "Update block content"
}
]
}
]
},
{
"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": "Delete a block"
}
]
}
]
},
{
"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": "Move a block"
}
]
}
]
},
{
"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": "Batch get block info"
}
]
}
]
},
{
"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": "Batch get block kramdown"
}
]
}
]
}
]
},
{
"ID": "20260618124055-y8gn5g3",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-y8gn5g3",
"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 \"# New Heading\"\nsiyuan block insert --parent parent-id --file ./content.md\nsiyuan block insert --parent parent-id --data \"paragraph\" --previous sibling-id\n\nsiyuan block append --parent parent-id --data \"- list item\"\nsiyuan block append --parent parent-id --file ./content.md\n\nsiyuan block prepend --parent parent-id --data \"> quote\"\n\nsiyuan block update --id block-id --data \"updated content\"\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": "20260618124055-zimbean",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-zimbean",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Outline"
}
]
},
{
"ID": "20260618124055-zqe0rpb",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-zqe0rpb",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Get the document heading outline tree."
}
]
},
{
"ID": "20260618124055-0pvpvho",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-0pvpvho",
"updated": "20260618124055"
},
"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": "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": "Get the document heading outline"
}
]
}
]
}
]
},
{
"ID": "20260618124055-mvp28p7",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-mvp28p7",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan outline get --id doc-id\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-ddm1efp",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-ddm1efp",
"updated": "20261024160716"
},
"Children": [
{
"Type": "NodeText",
"Data": "Search"
}
]
},
{
"ID": "20260618124055-9c1b0v9",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-9c1b0v9",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Search by notebook, path, and block type with several methods and sort orders. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--method 4"
},
{
"Type": "NodeText",
"Data": " performs semantic search and requires an enabled embedding model and a prepared embedding index; configure and build these in the app first, as described in "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260804171005-semnt03",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "Semantic Search"
},
{
"Type": "NodeText",
"Data": ". Asset search supports methods 0–3 only."
}
]
},
{
"ID": "20260618124055-jh2j81m",
"Type": "NodeTable",
"TableAligns": [
0,
0
],
"Properties": {
"colgroup": "|",
"id": "20260618124055-jh2j81m",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"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": "<query>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "Search keyword (required)"
}
]
}
]
},
{
"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": "Filter by notebook, repeatable"
}
]
}
]
},
{
"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": "Filter by path, repeatable"
}
]
}
]
},
{
"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": "Filter by block type (document/heading/paragraph/list, etc.), repeatable"
}
]
}
]
},
{
"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": "Filter by subtype: h1 through h6 for heading levels; list:o/u/t for list blocks and listItem:o/u/t for list item blocks (o=ordered, u=unordered, t=task), repeatable; bare o/u/t are no longer supported"
}
]
}
]
},
{
"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": "Search method: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " keyword "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " query syntax "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " SQL "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " regex "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " semantic"
}
]
}
]
},
{
"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": "Sort: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " by type "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " created asc "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " created desc "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " updated asc "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " updated desc "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "5"
},
{
"Type": "NodeText",
"Data": " by content "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "6"
},
{
"Type": "NodeText",
"Data": " relevance asc "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "7"
},
{
"Type": "NodeText",
"Data": " relevance desc"
}
]
}
]
},
{
"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": "Page number"
}
]
}
]
},
{
"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": "Page size"
}
]
}
]
},
{
"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": "Group: "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " none "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " by document"
}
]
}
]
}
]
},
{
"ID": "20260618124055-4eyeyfx",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-4eyeyfx",
"updated": "20261024160716"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan search \"keyword\"\nsiyuan search \"keyword\" --notebook box1 --notebook box2\nsiyuan search \"keyword\" --path \"/folder\"\nsiyuan search \"keyword\" --type document --type heading\nsiyuan search \"keyword\" --type listItem --subtype listItem:o --subtype listItem:u\nsiyuan search \"SELECT * FROM blocks WHERE type='h' LIMIT 20\" --method 2\nsiyuan search \"keyword\" --order-by 4 --page 1 --page-size 20\nsiyuan search \"keyword\" --group-by 1\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260704120000-7999d08",
"Type": "NodeParagraph",
"Properties": {
"id": "20260704120000-7999d08",
"updated": "20260704120000"
},
"Children": [
{
"Type": "NodeText",
"Data": "Add --asset to search the content index of asset files (PDF/Word/Excel/txt etc.); use --ext to filter by extension (repeatable). In this mode --method only supports 0-3, and --order-by values are 0 relevance-desc, 1 relevance-asc, 2 updated-asc, 3 updated-desc."
}
]
},
{
"ID": "20260704120100-feff4a0",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260704120100-feff4a0",
"updated": "20260704120100"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan search \"keyword\" --asset\nsiyuan search \"keyword\" --asset --ext pdf --ext docx\nsiyuan search \"keyword\" --asset --method 3 --order-by 3\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260704130000-d80a64e",
"Type": "NodeParagraph",
"Properties": {
"id": "20260704130000-d80a64e",
"updated": "20260704130000"
},
"Children": [
{
"Type": "NodeText",
"Data": "Add --get-asset to get the full indexed content of a single asset file by path (the positional argument is treated as the path, e.g. assets/report.pdf). Useful for retrieving the full text of a file found via --asset search."
}
]
},
{
"ID": "20260704130100-55c901d",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260704130100-55c901d",
"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": "20260618124055-f1m7l4b",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-f1m7l4b",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "SQL Query"
}
]
},
{
"ID": "20260618124055-5hm03n8",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-5hm03n8",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Run read-only SQL queries against system tables for statistical analysis."
}
]
},
{
"ID": "20260618124055-pjpseom",
"Type": "NodeTable",
"TableAligns": [
0,
0
],
"Properties": {
"colgroup": "|",
"id": "20260618124055-pjpseom",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeTableHead",
"Data": "thead",
"Children": [
{
"Type": "NodeTableRow",
"Data": "tr",
"Children": [
{
"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": "<statement>"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "A SQL SELECT statement (required)"
}
]
}
]
},
{
"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": "Maximum rows to return, default 100"
}
]
}
]
}
]
},
{
"ID": "20260618124055-6xgtd7k",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-6xgtd7k",
"updated": "20260618124055"
},
"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": "20260618124055-4jpnmem",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-4jpnmem",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Sync"
}
]
},
{
"ID": "20260618124055-mcgflo9",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-mcgflo9",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Upload data to the cloud or download from the cloud."
}
]
},
{
"ID": "20260618124055-7guokwv",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-7guokwv",
"updated": "20260618124055"
},
"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": "sync push"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "Upload to the cloud"
}
]
}
]
},
{
"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": "Download from the cloud"
}
]
}
]
},
{
"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": "Show sync status"
}
]
}
]
}
]
},
{
"ID": "20260618124055-jekbnpf",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-jekbnpf",
"updated": "20260618124055"
},
"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": "20260618124055-4cmyqw3",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-4cmyqw3",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Export"
}
]
},
{
"ID": "20260618124055-m331mvc",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-m331mvc",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Export documents to various formats; "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": " selects the output file. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "export data"
},
{
"Type": "NodeText",
"Data": " archives only the workspace’s "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "data"
},
{
"Type": "NodeText",
"Data": " directory and is refused if any encrypted notebook exists. For supported in-app backup and recovery, see "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260907120000-cryen01",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "Encrypted Notebook"
},
{
"Type": "NodeText",
"Data": "."
}
]
},
{
"ID": "20260618124055-rsogdq4",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-rsogdq4",
"updated": "20261016112115"
},
"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": "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": "Export 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": "Export 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": "Export preview 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": "Export Word ("
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--output"
},
{
"Type": "NodeText",
"Data": " required)"
}
]
}
]
},
{
"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": "Export .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": "Export 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": "Export the data directory only; unavailable if any encrypted notebook exists"
}
]
}
]
}
]
},
{
"ID": "20260618124055-noya7z6",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-noya7z6",
"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": "20260618124055-id9ovtn",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-id9ovtn",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Import"
}
]
},
{
"ID": "20260618124055-yq2i69f",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-yq2i69f",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Import external files into a specified notebook."
}
]
},
{
"ID": "20260618124055-vmjfim8",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-vmjfim8",
"updated": "20261016112115"
},
"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": "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": "Import Markdown files or directories"
}
]
}
]
},
{
"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": "Import .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": "Import a data-directory backup"
}
]
}
]
}
]
},
{
"ID": "20260618124055-tvha4js",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-tvha4js",
"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 \"/import-folder\"\nsiyuan import sy --file ./backup.sy.zip --notebook notebook-id\nsiyuan import data --file ./data-backup.zip\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260630162856-vs945w2",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260630162856-vs945w2",
"updated": "20260630162856"
},
"Children": [
{
"Type": "NodeText",
"Data": "Inbox"
}
]
},
{
"ID": "20260630162856-zj3ir9b",
"Type": "NodeParagraph",
"Properties": {
"id": "20260630162856-zj3ir9b",
"updated": "20260630162856"
},
"Children": [
{
"Type": "NodeText",
"Data": "List, read, and convert cloud inbox shorthands (clipped web pages, messages, and attachments) into local documents. Requires a subscription."
}
]
},
{
"ID": "20260630162856-rb809w6",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260630162856-rb809w6",
"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": "List cloud inbox shorthands (paginated)"
}
]
}
]
},
{
"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": "Get a shorthand with full 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": "Convert shorthands into local documents"
}
]
}
]
}
]
},
{
"ID": "20260630162856-pvkmdon",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260630162856-pvkmdon",
"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 \"/folder\"\nsiyuan inbox convert --ids \"id1\" --notebook notebook-id --remove-after=false\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-zg1h26k",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-zg1h26k",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Data History"
}
]
},
{
"ID": "20260618124055-xtddoyu",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-xtddoyu",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "View and manage document history versions."
}
]
},
{
"ID": "20260618124055-xktxvms",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-xktxvms",
"updated": "20260618124055"
},
"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": "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": "List history records"
}
]
}
]
},
{
"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": "Search history"
}
]
}
]
},
{
"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": "Get a history version's content"
}
]
}
]
},
{
"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": "Roll back to a history version"
}
]
}
]
},
{
"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": "Clear all history"
}
]
}
]
}
]
},
{
"ID": "20260618124055-1qrxq9b",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-1qrxq9b",
"updated": "20260618124055"
},
"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": "20260618124055-9927crc",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-9927crc",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": ": "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " by document name | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " by content | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " by asset | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " by document ID | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " by database"
}
]
},
{
"ID": "20260618124055-maqovuk",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-maqovuk",
"updated": "20260618124055"
},
"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 \"keyword\" --notebook notebook-id --op update\nsiyuan history get --path \"history/...\"\nsiyuan history rollback --path \"history/...\"\nsiyuan history clear\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-rwjs5xr",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-rwjs5xr",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Data Snapshots"
}
]
},
{
"ID": "20260618124055-w21h7uq",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-w21h7uq",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Create and manage workspace snapshots, supporting rollback and file-level recovery."
}
]
},
{
"ID": "20260618124055-wiumuhn",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-wiumuhn",
"updated": "20260618124055"
},
"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": "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": "List snapshots"
}
]
}
]
},
{
"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": "Create a new snapshot"
}
]
}
]
},
{
"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": "Tag a snapshot"
}
]
}
]
},
{
"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": "Remove a tag"
}
]
}
]
},
{
"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": "Roll back to a snapshot"
}
]
}
]
},
{
"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": "Compare two snapshots"
}
]
}
]
},
{
"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": "Search files within snapshots"
}
]
}
]
},
{
"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": "Purge old snapshots"
}
]
}
]
},
{
"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": "Get file content from a snapshot"
}
]
}
]
},
{
"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": "Roll back a single file from a snapshot"
}
]
}
]
},
{
"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": "Preview a snapshot file"
}
]
}
]
},
{
"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": "Export a snapshot file"
}
]
}
]
}
]
},
{
"ID": "20260618124055-fznfttx",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-fznfttx",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan repo list\nsiyuan repo list --tag --page 1\nsiyuan repo create --memo \"backup before upgrade\"\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 \"keyword\"\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": "20260618124055-eyy7hxk",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-eyy7hxk",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Backlinks and Mentions"
}
]
},
{
"ID": "20260618124055-2mkndim",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-2mkndim",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "View a block's backlinks and mentions, and refresh the backlink index."
}
]
},
{
"ID": "20260618124055-dyjf4r0",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-dyjf4r0",
"updated": "20260618124055"
},
"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": "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": "Get backlinks"
}
]
}
]
},
{
"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": "Get mentions"
}
]
}
]
},
{
"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": "Refresh the backlink index"
}
]
}
]
}
]
},
{
"ID": "20260618124055-fs5kpdz",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-fs5kpdz",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--sort"
},
{
"Type": "NodeText",
"Data": ": "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "0"
},
{
"Type": "NodeText",
"Data": " updated desc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "1"
},
{
"Type": "NodeText",
"Data": " updated asc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "2"
},
{
"Type": "NodeText",
"Data": " created desc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "3"
},
{
"Type": "NodeText",
"Data": " created asc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "4"
},
{
"Type": "NodeText",
"Data": " name desc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "5"
},
{
"Type": "NodeText",
"Data": " name asc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "6"
},
{
"Type": "NodeText",
"Data": " alphanumeric desc | "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "7"
},
{
"Type": "NodeText",
"Data": " alphanumeric asc"
}
]
},
{
"ID": "20260618124055-yhvwyyp",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-yhvwyyp",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan ref backlinks --id block-id\nsiyuan ref backlinks --id block-id --keyword \"filter\" --sort 4\nsiyuan ref mentions --id block-id\nsiyuan ref refresh --id block-id\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-cpno70b",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-cpno70b",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Tags"
}
]
},
{
"ID": "20260618124055-f31s1pa",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-f31s1pa",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage viewing, renaming, and deleting tags."
}
]
},
{
"ID": "20260618124055-77hm531",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-77hm531",
"updated": "20260618124055"
},
"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": "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": "List or search tags"
}
]
}
]
},
{
"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": "Remove a tag"
}
]
}
]
},
{
"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": "Rename a tag"
}
]
}
]
}
]
},
{
"ID": "20260618124055-0clvqpr",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-0clvqpr",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan tag list\nsiyuan tag list --keyword \"project\"\nsiyuan tag remove --label \"todo\"\nsiyuan tag rename --old \"old\" --new \"new\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-86twxy7",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-86twxy7",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "Block Attributes"
}
]
},
{
"ID": "20260618124055-ppudavp",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-ppudavp",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Get and set a block's custom attributes."
}
]
},
{
"ID": "20260618124055-ax1bjpy",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-ax1bjpy",
"updated": "20261024162311"
},
"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": "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": "Get built-in and custom block attributes"
}
]
}
]
},
{
"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": "Set attributes ("
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--attr"
},
{
"Type": "NodeText",
"Data": " repeatable)"
}
]
}
]
},
{
"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": "Batch get attributes"
}
]
}
]
}
]
},
{
"ID": "20260618124055-5qy5u97",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-5qy5u97",
"updated": "20260618124055"
},
"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=\"tag1, tag2\" --attr custom-key=custom-value\nsiyuan attr batch-get --ids \"id1,id2,id3\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-g30k0np",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-g30k0np",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Assets"
}
]
},
{
"ID": "20260618124055-6xje8qe",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-6xje8qe",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage asset files within documents."
}
]
},
{
"ID": "20260618124055-x7s9fjn",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-x7s9fjn",
"updated": "20260618124055"
},
"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": "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": "Upload asset files ("
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--file"
},
{
"Type": "NodeText",
"Data": " repeatable)"
}
]
}
]
},
{
"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": "List unused assets"
}
]
}
]
},
{
"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": "Clean unused assets"
}
]
}
]
},
{
"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": "Show asset file info"
}
]
}
]
}
]
},
{
"ID": "20260618124055-pg70c62",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-pg70c62",
"updated": "20260618124055"
},
"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": "20260618124055-tg9eg8o",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-tg9eg8o",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Bookmarks"
}
]
},
{
"ID": "20260618124055-1wi99hz",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-1wi99hz",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage viewing, renaming, and deleting bookmarks."
}
]
},
{
"ID": "20260618124055-gngr22n",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-gngr22n",
"updated": "20260618124055"
},
"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": "bookmark list"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "List bookmarks"
}
]
}
]
},
{
"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": "List bookmark labels"
}
]
}
]
},
{
"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": "Remove a bookmark"
}
]
}
]
},
{
"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": "Rename a bookmark"
}
]
}
]
}
]
},
{
"ID": "20260618124055-t0pj2ar",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-t0pj2ar",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan bookmark list\nsiyuan bookmark labels\nsiyuan bookmark remove --label \"bookmark-name\"\nsiyuan bookmark rename --old \"old\" --new \"new\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-680zq7t",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-680zq7t",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": "Database"
}
]
},
{
"ID": "20260618124055-9hxeo1k",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-9hxeo1k",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage database fields, rows, and views."
}
]
},
{
"ID": "20260618124055-5ktzc0c",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-5ktzc0c",
"updated": "20260618124055"
},
"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": "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": "Search databases"
}
]
}
]
},
{
"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": "Get database details"
}
]
}
]
},
{
"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": "Render the database table"
}
]
}
]
},
{
"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": "List all fields"
}
]
}
]
},
{
"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": "List unused databases"
}
]
}
]
},
{
"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": "Clean unused databases"
}
]
}
]
},
{
"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": "Add a field"
}
]
}
]
},
{
"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": "Remove a field"
}
]
}
]
},
{
"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": "Add a row"
}
]
}
]
},
{
"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": "Remove rows"
}
]
}
]
},
{
"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": "Update a cell"
}
]
}
]
}
]
},
{
"ID": "20260618124055-uk15vje",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-uk15vje",
"updated": "20261024162311"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--type"
},
{
"Type": "NodeText",
"Data": " field types: "
},
{
"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": "20260618124055-td0hy84",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-td0hy84",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan database search \"keyword\"\nsiyuan database get --av db-id\nsiyuan database render --av db-id --view view-id --query \"filter\" --page 1 --size 50\nsiyuan database keys --av db-id\n\nsiyuan database key add --av db-id --name \"status\" --type select\nsiyuan database key add --av db-id --name \"amount\" --type number --icon 1f4b0\nsiyuan database key add --av db-id --name \"note\" --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 \"text\"\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\": \"new value\"}'\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-st5d5xf",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-st5d5xf",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Daily Note"
}
]
},
{
"ID": "20260618124055-qethcuv",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-qethcuv",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage creation and content appending for daily notes."
}
]
},
{
"ID": "20260618124055-j0ba1rv",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-j0ba1rv",
"updated": "20260618124055"
},
"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": "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": "Create today's daily note"
}
]
}
]
},
{
"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": "Append content to today's daily note"
}
]
}
]
},
{
"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": "Prepend content to today's daily note"
}
]
}
]
}
]
},
{
"ID": "20260618124055-i8m2de9",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-i8m2de9",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan dailynote create --notebook notebook-id\nsiyuan dailynote append --notebook notebook-id --data \"- [ ] todo\"\nsiyuan dailynote append --notebook notebook-id --file ./content.md\nsiyuan dailynote prepend --notebook notebook-id --data \"## Today's focus\"\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-krii2n8",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-krii2n8",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": "Template"
}
]
},
{
"ID": "20260618124055-vxsofc8",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-vxsofc8",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manage template files: search, create, render, and save documents as templates. Template paths are relative to "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "data/templates"
},
{
"Type": "NodeText",
"Data": "."
}
]
},
{
"ID": "20260618124055-eqpsnny",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-eqpsnny",
"updated": "20260618124055"
},
"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": "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": "Search templates; lists all when keyword is empty"
}
]
}
]
},
{
"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": "Read template content"
}
]
}
]
},
{
"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": "Create a template from Markdown content"
}
]
}
]
},
{
"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": "Preview-render the template against a block"
}
]
}
]
},
{
"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": "Save a document as a template"
}
]
}
]
},
{
"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": "Remove a template"
}
]
}
]
}
]
},
{
"ID": "20260618124055-2mql8ng",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-2mql8ng",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan template search\nsiyuan template search \"meeting\"\nsiyuan template get --path weekly.md\nsiyuan template create --name \"weekly\" --data \"# Weekly\"\nsiyuan template create --name \"weekly\" --file ./weekly.md\nsiyuan template create --name \"weekly\" --data \"# Weekly\" --overwrite\nsiyuan template render --path weekly.md --id doc-id\nsiyuan template save-as --id doc-id --name \"meeting-notes\"\nsiyuan template save-as --id doc-id --name \"meeting-notes\" --overwrite\nsiyuan template remove --path weekly.md\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
},
{
"ID": "20260618124055-abun8dx",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-abun8dx",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Workspace File Operations"
}
]
},
{
"ID": "20260618124055-26klr3g",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-26klr3g",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Operate on files within the workspace. All paths are relative to the workspace."
}
]
},
{
"ID": "20260618124055-uf1hi7m",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-uf1hi7m",
"updated": "20260618124055"
},
"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": "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": "List directory contents"
}
]
}
]
},
{
"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": "Read file content"
}
]
}
]
},
{
"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": "Write a file"
}
]
}
]
},
{
"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": "Delete a file or directory"
}
]
}
]
},
{
"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": "Rename or move a file"
}
]
}
]
},
{
"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": "Copy a file or directory"
}
]
}
]
},
{
"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": "Search file contents with regex"
}
]
}
]
},
{
"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": "Find files by glob"
}
]
}
]
},
{
"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": "Show file or directory info"
}
]
}
]
}
]
},
{
"ID": "20260618124055-ays7sox",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-ays7sox",
"updated": "20260618124055"
},
"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-53b0536",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260809180000-53b0536",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Server"
}
]
},
{
"ID": "20260809180000-86e65af",
"Type": "NodeParagraph",
"Properties": {
"id": "20260809180000-86e65af",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "Start the HTTP server. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " selects the workspace data directory; "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--wd"
},
{
"Type": "NodeText",
"Data": " selects the program resource directory containing "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "appearance/"
},
{
"Type": "NodeText",
"Data": " and "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "stage/"
},
{
"Type": "NodeText",
"Data": " and is normally detected automatically. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--port"
},
{
"Type": "NodeText",
"Data": " sets the port; "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--readonly"
},
{
"Type": "NodeText",
"Data": " read-only mode, "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--accessAuthCode"
},
{
"Type": "NodeText",
"Data": " the lock screen password, "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--lang"
},
{
"Type": "NodeText",
"Data": " the interface language, "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode"
},
{
"Type": "NodeText",
"Data": " dev or prod mode, "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--ssl"
},
{
"Type": "NodeText",
"Data": " HTTPS and WSS, and "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--safe-mode"
},
{
"Type": "NodeText",
"Data": " safe mode. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--attach-ui"
},
{
"Type": "NodeText",
"Data": " is reserved for Electron. "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--enable-pprof"
},
{
"Type": "NodeText",
"Data": " exposes unauthenticated process diagnostics and must only be used for local development."
}
]
},
{
"ID": "20260809180000-349101a",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260809180000-349101a",
"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 en --ssl\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```",
"CodeBlockFenceLen": 3
}
]
},
{
"ID": "20260618124055-rbgsjp0",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260618124055-rbgsjp0",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "System"
}
]
},
{
"ID": "20260618124055-8v7500x",
"Type": "NodeParagraph",
"Properties": {
"id": "20260618124055-8v7500x",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeText",
"Data": "Show system information."
}
]
},
{
"ID": "20260618124055-muwiopg",
"Type": "NodeTable",
"TableAligns": [
0,
0,
0
],
"Properties": {
"colgroup": "||",
"id": "20260618124055-muwiopg",
"updated": "20260618124055"
},
"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": "system current-time"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"Type": "NodeTableCell",
"Data": "td"
},
{
"Type": "NodeTableCell",
"Data": "td",
"Children": [
{
"Type": "NodeText",
"Data": "Show the current server time"
}
]
}
]
}
]
},
{
"ID": "20260618124055-lg5dt5n",
"Type": "NodeCodeBlock",
"IsFencedCodeBlock": true,
"Properties": {
"id": "20260618124055-lg5dt5n",
"updated": "20260618124055"
},
"Children": [
{
"Type": "NodeCodeBlockFenceOpenMarker",
"Data": "```"
},
{
"Type": "NodeCodeBlockFenceInfoMarker",
"CodeBlockInfo": "YmFzaA=="
},
{
"Type": "NodeCodeBlockCode",
"Data": "siyuan system current-time\n"
},
{
"Type": "NodeCodeBlockFenceCloseMarker",
"Data": "```"
}
]
}
]
}