网淘吧来吧,欢迎您!

Craft Notes技能使用说明

2026-04-01 新闻来源:网淘吧 围观:24
电脑广告
手机广告

Craft CLI

与Craft.do中的文档、区块和任务进行交互。

设置

  1. 安装:复制scripts/craft~/bin/craft并使其可执行
  2. 从Craft获取API URL:设置 > 集成 > Craft Connect > 创建链接
  3. 设置环境变量:export CRAFT_API_URL='https://connect.craft.do/links/YOUR_LINK/api/v1'

将其添加到shell配置文件中以实现持久化。

Craft Notes

命令

文档

craft folders                    # List all folders
craft docs [location]            # List documents (unsorted, trash, templates, daily_notes)
craft doc <id>                   # Get document content by ID
craft daily [date]               # Get daily note (today, yesterday, YYYY-MM-DD)
craft search <term>              # Search across documents
craft create-doc "Title" [folderId]  # Create new document

区块

craft add-block <docId> "markdown"      # Add block to document
craft add-to-daily "markdown" [date]    # Add to daily note (default: today)
craft update-block <blockId> "markdown" # Update existing block
craft delete-block <blockId>...         # Delete block(s)

任务

craft tasks [scope]              # List tasks (inbox, active, upcoming, logbook)
craft add-task "text" [scheduleDate]  # Add task to inbox
craft complete-task <id>         # Mark task as done
craft delete-task <id>           # Delete task

集合

craft collections                # List all collections
craft collection-items <id>      # Get items from collection

笔记

  • Markdown内容通过参数传递;如有需要请转义引号
  • 日期:今天昨天,或YYYY-MM-DD
  • 任务范围:收件箱(默认),进行中待处理日志簿
  • 文档位置:未分类回收站模板每日笔记

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第393692名访客 今日有1篇新文章/评论