cli-anything-zotero
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecli-anything-zotero
cli-anything-zotero
cli-anything-zoterocli-anything-zoteroInstallation
安装
bash
pip install -e .bash
pip install -e .Entry Points
入口点
bash
cli-anything-zotero
python -m cli_anything.zoterobash
cli-anything-zotero
python -m cli_anything.zoteroImportant Constraints
重要限制
- ,
search items,item export, anditem citationrequire Zotero's Local API to be enabled.item bibliography - depends on the live Zotero GUI context and expects the same library to be selected in the app.
note add - Import-time PDF attachment support is limited to items created in the same connector session; arbitrary existing-item attachment upload is still out of scope.
- Experimental SQLite write commands are local-only, user-library-only, and should be treated as non-stable power-user operations.
- If a bare key is duplicated across libraries, set before follow-up commands.
session use-library <id>
- 、
搜索条目、条目导出和条目引用功能需要启用Zotero的Local API。条目参考文献 - 功能依赖Zotero GUI的实时上下文,且要求应用中已选中对应的库。
添加笔记 - 导入时的PDF附件支持仅限于同一连接器会话中创建的条目;为任意现有条目上传附件目前仍不在功能范围内。
- 实验性SQLite写入命令仅支持本地操作,且仅限用户库使用,应视为非稳定的高级用户操作。
- 如果不同库中存在重复的裸键,请在后续命令前执行 。
session use-library <id>
Command Groups
命令组
App
应用(App)
Application and runtime inspection commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
用于检查应用和运行时状态的命令。
| 命令 | 描述 |
|---|---|
| 执行状态检查。 |
| 执行版本查询。 |
| 启动Zotero。 |
| 启用Local API。 |
| 执行连通性检测。 |
Collection
集合(Collection)
Collection inspection and selection commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
用于检查和选择集合的命令。
| 命令 | 描述 |
|---|---|
| 列出集合。 |
| 查找集合。 |
| 显示集合树形结构。 |
| 获取集合详情。 |
| 获取集合中的条目。 |
| 选中当前GUI中选定的集合。 |
| 创建集合。 |
Item
条目(Item)
Item inspection and rendering commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
用于检查和渲染条目的命令。
| 命令 | 描述 |
|---|---|
| 列出条目。 |
| 查找条目。 |
| 获取条目详情。 |
| 获取子条目。 |
| 获取条目笔记。 |
| 获取条目附件。 |
| 获取条目关联文件。 |
| 导出条目。 |
| 生成引用格式。 |
| 生成参考文献。 |
| 获取条目上下文。 |
| 分析条目。 |
| 将条目添加到集合。 |
| 将条目移动到集合。 |
Search
搜索(Search)
Saved-search inspection commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
| Execute |
用于检查已保存搜索的命令。
| 命令 | 描述 |
|---|---|
| 列出已保存搜索。 |
| 获取已保存搜索详情。 |
| 获取已保存搜索的结果条目。 |
Tag
标签(Tag)
Tag inspection commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
用于检查标签的命令。
| 命令 | 描述 |
|---|---|
| 列出标签。 |
| 获取带有该标签的条目。 |
Style
样式(Style)
Installed CSL style inspection commands.
| Command | Description |
|---|---|
| Execute |
用于检查已安装CSL样式的命令。
| 命令 | 描述 |
|---|---|
| 列出已安装的CSL样式。 |
Import
导入(Import)
Official Zotero import and write commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
官方Zotero导入和写入命令。
| 命令 | 描述 |
|---|---|
| 导入文件。 |
| 导入JSON数据。 |
Note
笔记(Note)
Read and add child notes.
| Command | Description |
|---|---|
| Execute |
| Execute |
读取和添加子笔记的命令。
| 命令 | 描述 |
|---|---|
| 获取笔记。 |
| 添加笔记。 |
Session
会话(Session)
Session and REPL context commands.
| Command | Description |
|---|---|
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
| Execute |
会话和REPL上下文相关命令。
| 命令 | 描述 |
|---|---|
| 检查会话状态。 |
| 指定使用的库。 |
| 指定使用的集合。 |
| 指定使用的条目。 |
| 选中当前GUI中选定的对象。 |
| 清除当前指定的库。 |
| 清除当前指定的集合。 |
| 清除当前指定的条目。 |
| 查看命令历史。 |
Examples
示例
Runtime Status
运行时状态
Inspect Zotero paths and backend availability.
bash
cli-anything-zotero app status --json检查Zotero路径和后端可用性。
bash
cli-anything-zotero app status --jsonRead Selected Collection
读取选定集合
Persist the collection selected in the Zotero GUI.
bash
cli-anything-zotero collection use-selected --json保存Zotero GUI中当前选定的集合。
bash
cli-anything-zotero collection use-selected --jsonRender Citation
生成引用格式
Render a citation using Zotero's Local API.
bash
cli-anything-zotero item citation <item-key> --style apa --locale en-US --json使用Zotero的Local API生成引用格式。
bash
cli-anything-zotero item citation <item-key> --style apa --locale en-US --jsonAdd Child Note
添加子笔记
Create a child note under an existing Zotero item.
bash
cli-anything-zotero note add <item-key> --text "Key takeaway" --json在现有Zotero条目下创建子笔记。
bash
cli-anything-zotero note add <item-key> --text "Key takeaway" --jsonBuild LLM Context
构建LLM上下文
Assemble structured context for downstream model analysis.
bash
cli-anything-zotero item context <item-key> --include-notes --include-links --json为下游模型分析组装结构化上下文。
bash
cli-anything-zotero item context <item-key> --include-notes --include-links --jsonVersion
版本
0.1.0
0.1.0