blooming-blockery-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseblooming-blockery-cli
blooming-blockery-cli
Use this skill to run sub-commands of correctly,
and understand the CLI structure.
blockblooming-blockeryblooming-blockery使用本技能来正确运行的子命令,同时了解的CLI结构。
blooming-blockeryblockblooming-blockeryWhen to use
适用场景
- The user asks how to use or
blooming-blockeryfrom terminal scripts.block - The user hits CLI parsing errors with block IDs, mount formats, or panel states.
- The user needs ready-to-copy command examples for block store workflows.
- The user is scripting interactions with the block document store.
- 用户询问如何在终端脚本中使用或
blooming-blockery命令。block - 用户遇到block ID、挂载格式或面板状态相关的CLI解析错误。
- 用户需要可直接复制的块存储工作流命令示例。
- 用户正在编写与块文档存储交互的脚本。
Global Flags
全局标志
All commands support these global flags:
- : Path to the block store file (defaults to app data file)
--store <PATH> - : Enable verbose output (currently reserved)
--verbose - : Output format -
--output <FORMAT>(default) ortablejson
所有命令都支持以下全局标志:
- :块存储文件的路径(默认使用应用数据文件)
--store <PATH> - :启用详细输出(目前为预留功能)
--verbose - :输出格式 -
--output <FORMAT>(默认)或tablejson
Block ID Format
Block ID格式
Block IDs use a clean format like , where:
1v12v3- First number = slot index in the store
- = separator
v - Second number = generation counter (increments on reuse)
Block ID采用简洁的格式,例如、,其中:
1v12v3- 第一个数字 = 存储中的槽位索引
- = 分隔符
v - 第二个数字 = 生成计数器(复用块时会递增)
Command Reference
命令参考
All the following commands should be prepended by .
blooming-blockery所有以下命令都需要添加前缀。
blooming-blockeryQuery Commands
查询命令
bash
undefinedbash
undefinedList all root block IDs
List all root block IDs
block roots
block roots --output json
block roots
block roots --output json
Show block details
Show block details
block show <BLOCK_ID>
block show 1v1 --output json
block show <BLOCK_ID>
block show 1v1 --output json
Search blocks by text (case-insensitive substring)
Search blocks by text (case-insensitive substring)
block find "search query"
block find "TODO" --limit 10
block find "search query"
block find "TODO" --limit 10
Edit the text content of a block
Edit the text content of a block
block point <BLOCK_ID> "New text content"
block point 1v1 "Updated text"
undefinedblock point <BLOCK_ID> "New text content"
block point 1v1 "Updated text"
undefinedTree Structure Commands
树结构命令
bash
undefinedbash
undefinedAdd child block under parent (parent must not be a mount)
Add child block under parent (parent must not be a mount)
block tree add-child <PARENT_ID> "Text content"
block tree add-child 1v1 "My new idea"
block tree add-child <PARENT_ID> "Text content"
block tree add-child 1v1 "My new idea"
Add sibling after a block
Add sibling after a block
block tree add-sibling <BLOCK_ID> "Text content"
block tree add-sibling 1v1 "Next sibling"
block tree add-sibling <BLOCK_ID> "Text content"
block tree add-sibling 1v1 "Next sibling"
Wrap a block with a new parent
Wrap a block with a new parent
block tree wrap <BLOCK_ID> "Parent text"
block tree wrap 1v1 "New parent section"
block tree wrap <BLOCK_ID> "Parent text"
block tree wrap 1v1 "New parent section"
Duplicate a subtree
Duplicate a subtree
block tree duplicate <BLOCK_ID>
block tree duplicate 1v1
block tree duplicate <BLOCK_ID>
block tree duplicate 1v1
Delete a subtree (removes block and all descendants)
Delete a subtree (removes block and all descendants)
block tree delete <BLOCK_ID>
block tree delete 1v1
block tree delete <BLOCK_ID>
block tree delete 1v1
Move block relative to target
Move block relative to target
block tree move <SOURCE_ID> <TARGET_ID> --before
block tree move <SOURCE_ID> <TARGET_ID> --after
block tree move <SOURCE_ID> <TARGET_ID> --under
undefinedblock tree move <SOURCE_ID> <TARGET_ID> --before
block tree move <SOURCE_ID> <TARGET_ID> --after
block tree move <SOURCE_ID> <TARGET_ID> --under
undefinedNavigation Commands
导航命令
bash
undefinedbash
undefinedGet next visible block in DFS order
Get next visible block in DFS order
block nav next <BLOCK_ID>
block nav next 1v1
block nav next <BLOCK_ID>
block nav next 1v1
Get previous visible block
Get previous visible block
block nav prev <BLOCK_ID>
block nav prev 2v1
block nav prev <BLOCK_ID>
block nav prev 2v1
Get lineage (ancestor chain)
Get lineage (ancestor chain)
block nav lineage <BLOCK_ID>
block nav lineage 1v1
undefinedblock nav lineage <BLOCK_ID>
block nav lineage 1v1
undefinedDraft Commands (LLM suggestions)
草稿命令(LLM 建议相关)
bash
undefinedbash
undefinedSet expansion draft (rewrite + proposed children)
Set expansion draft (rewrite + proposed children)
block draft expand <BLOCK_ID> --rewrite "Refined text" --children "Child 1" "Child 2"
block draft expand 1v1 --children "Just kids"
block draft expand <BLOCK_ID> --rewrite "Refined text" --children "Child 1" "Child 2"
block draft expand 1v1 --children "Just kids"
Set reduction draft (condensed version)
Set reduction draft (condensed version)
block draft reduce <BLOCK_ID> --reduction "Condensed text" --redundant-children 2v1 3v1
block draft reduce <BLOCK_ID> --reduction "Condensed text" --redundant-children 2v1 3v1
Set instruction draft (user-authored LLM instructions)
Set instruction draft (user-authored LLM instructions)
block draft instruction <BLOCK_ID> --text "Make this more concise"
block draft instruction <BLOCK_ID> --text "Make this more concise"
Set inquiry draft (LLM response to ask query)
Set inquiry draft (LLM response to ask query)
block draft inquiry <BLOCK_ID> --response "The key insight is..."
block draft inquiry <BLOCK_ID> --response "The key insight is..."
List all drafts for a block
List all drafts for a block
block draft list <BLOCK_ID>
block draft list <BLOCK_ID>
Clear drafts (use --all or specific flags)
Clear drafts (use --all or specific flags)
block draft clear <BLOCK_ID> --all
block draft clear <BLOCK_ID> --expand
block draft clear <BLOCK_ID> --reduce --instruction
undefinedblock draft clear <BLOCK_ID> --all
block draft clear <BLOCK_ID> --expand
block draft clear <BLOCK_ID> --reduce --instruction
undefinedFold (Collapse) Commands
折叠命令
bash
undefinedbash
undefinedToggle fold state
Toggle fold state
block fold toggle <BLOCK_ID>
block fold toggle <BLOCK_ID>
Get fold status
Get fold status
block fold status <BLOCK_ID>
undefinedblock fold status <BLOCK_ID>
undefinedFriend (Cross-reference) Commands
关联(交叉引用)命令
bash
undefinedbash
undefinedAdd friend block with optional perspective
Add friend block with optional perspective
block friend add <TARGET_ID> <FRIEND_ID> --perspective "Related design"
block friend add <TARGET_ID> <FRIEND_ID> --telescope-lineage --telescope-children
block friend add <TARGET_ID> <FRIEND_ID> --perspective "Related design"
block friend add <TARGET_ID> <FRIEND_ID> --telescope-lineage --telescope-children
Remove friend
Remove friend
block friend remove <TARGET_ID> <FRIEND_ID>
block friend remove <TARGET_ID> <FRIEND_ID>
List friends
List friends
block friend list <TARGET_ID>
undefinedblock friend list <TARGET_ID>
undefinedMount (External File) Commands
挂载(外部文件)命令
bash
undefinedbash
undefinedSet mount path (block must be leaf, no children)
Set mount path (block must be leaf, no children)
block mount set <BLOCK_ID> <PATH> [--format json|markdown]
block mount set 1v1 /data/external.json
block mount set 1v1 /notes/notes.md --format markdown
block mount set <BLOCK_ID> <PATH> [--format json|markdown]
block mount set 1v1 /data/external.json
block mount set 1v1 /notes/notes.md --format markdown
Expand mount (load external file)
Expand mount (load external file)
block mount expand <BLOCK_ID>
block mount expand <BLOCK_ID>
Collapse mount (remove loaded blocks, restore mount node)
Collapse mount (remove loaded blocks, restore mount node)
block mount collapse <BLOCK_ID>
block mount collapse <BLOCK_ID>
Extract subtree to external file
Extract subtree to external file
block mount extract <BLOCK_ID> --output <PATH> [--format json|markdown]
block mount extract 1v1 --output /backup/notes.json
block mount extract <BLOCK_ID> --output <PATH> [--format json|markdown]
block mount extract 1v1 --output /backup/notes.json
Show mount info
Show mount info
block mount info <BLOCK_ID>
undefinedblock mount info <BLOCK_ID>
undefinedPanel Commands
面板命令
bash
undefinedbash
undefinedSet panel state
Set panel state
block panel set <BLOCK_ID> friends
block panel set <BLOCK_ID> instruction
block panel set <BLOCK_ID> friends
block panel set <BLOCK_ID> instruction
Get panel state
Get panel state
block panel get <BLOCK_ID>
block panel get <BLOCK_ID>
Clear panel state
Clear panel state
block panel clear <BLOCK_ID>
undefinedblock panel clear <BLOCK_ID>
undefinedContext Command
上下文命令
bash
undefinedbash
undefinedGet LLM context for a block (lineage, children, friends)
Get LLM context for a block (lineage, children, friends)
block context <BLOCK_ID>
block context 1v1
undefinedblock context <BLOCK_ID>
block context 1v1
undefinedCommon Error Patterns
常见错误类型
- : Block ID not found in store
UnknownBlock - :
InvalidOperation- Parent is a mount (cannot add children)
- Source is ancestor of target (cycle in move)
- Block has children (cannot set mount)
- Attempting to add self as friend
- : Failed to read/write mount file
IoError
- :存储中未找到对应Block ID
UnknownBlock - :
InvalidOperation- 父块是挂载块(无法添加子块)
- 源块是目标块的祖先(移动操作会产生循环)
- 块存在子块(无法设置挂载)
- 尝试将自身添加为关联块
- :挂载文件读/写失败
IoError
Tips
提示
- Use for scripting and parsing results
--output json - Block IDs are case-insensitive
- Mount format defaults to but supports
jsonmarkdown - Panel states are or
friendsinstruction - The GUI launches by default if no subcommand is given
- 编写脚本和解析结果时使用参数
--output json - Block ID不区分大小写
- 挂载格式默认为,也支持
jsonmarkdown - 面板状态可选值为或
friendsinstruction - 如果不输入任何子命令,默认会启动GUI