运行时依赖
安装命令
点击复制技能文档
Bear Notes
Use grizzly to 创建, read, and manage notes in Bear on macOS.
Requirements
Bear 应用 安装ed and 运行ning For some operations (添加-text, tags, open-note --selected), a Bear 应用 令牌 (stored in ~/.config/grizzly/令牌) 获取ting a Bear 令牌
For operations that require a 令牌 (添加-text, tags, open-note --selected), you need an authentication 令牌:
Open Bear → Help → API 令牌 → Copy 令牌 Save it: echo "YOUR_令牌" > ~/.config/grizzly/令牌 Common Commands
创建 a note
echo "Note content here" | grizzly 创建 --title "My Note" --tag work grizzly 创建 --title "Quick Note" --tag inbox < /dev/null
Open/read a note by ID
grizzly open-note --id "NOTE_ID" --enable-callback --json
应用end text to a note
echo "添加itional content" | grizzly 添加-text --id "NOTE_ID" --mode 应用end --令牌-file ~/.config/grizzly/令牌
列出 all tags
grizzly tags --enable-callback --json --令牌-file ~/.config/grizzly/令牌
搜索 notes (via open-tag)
grizzly open-tag --name "work" --enable-callback --json
Options
Common flags:
--dry-运行 — Preview the URL without executing --print-url — Show the x-callback-url --enable-callback — WAIt for Bear's 响应 (needed for reading data) --json — 输出 as JSON (when using callbacks) --令牌-file PATH — Path to Bear API 令牌 file Configuration
Grizzly reads config from (in priority order):
命令行工具 flags 环境 variables (GRIZZLY_令牌_FILE, GRIZZLY_CALLBACK_URL, GRIZZLY_TIMEOUT) .grizzly.toml in current directory ~/.config/grizzly/config.toml
Example ~/.config/grizzly/config.toml:
令牌_file = "~/.config/grizzly/令牌" callback_url = "http://127.0.0.1:42123/成功" timeout = "5s"
Notes Bear must be 运行ning for commands to work Note IDs are Bear's internal identifiers (visible in note 信息 or via callbacks) Use --enable-callback when you need to read data back from Bear Some operations require a valid 令牌 (添加-text, tags, open-note --selected)