复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-anything-zotero-b3ce211c8ed3 ,按照其中的说明把「cli-anything-zotero」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
cli-anything-zotero is an agent-native CLI for Zotero desktop. It does not reimplement Zotero. Instead, it composes Zotero's real local surfaces:
pip install -e .
cli-anything-zotero
python -m cli_anything.zotero
search items, item export, item citation, and item bibliography require Zotero's Local API to be enabled.note add depends on the live Zotero GUI context and expects the same library to be selected in the app.session use-library <id> before follow-up commands.Application and runtime inspection commands.
| Command | Description |
|---|---|
status | Execute status. |
version | Execute version. |
launch | Execute launch. |
enable-local-api | Execute enable-local-api. |
ping | Execute ping. |
Collection inspection and selection commands.
| Command | Description |
|---|---|
list | Execute list. |
find | Execute find. |
tree | Execute tree. |
get | Execute get. |
items | Execute items. |
use-selected | Execute use-selected. |
create | Execute create. |
Item inspection and rendering commands.
| Command | Description |
|---|---|
list | Execute list. |
find | Execute find. |
get | Execute get. |
children | Execute children. |
notes | Execute notes. |
attachments | Execute attachments. |
file | Execute file. |
export | Execute export. |
citation | Execute citation. |
bibliography | Execute bibliography. |
context | Execute context. |
analyze | Execute analyze. |
add-to-collection | Execute add-to-collection. |
move-to-collection | Execute move-to-collection. |
Saved-search inspection commands.
| Command | Description |
|---|---|
list | Execute list. |
get | Execute get. |
items | Execute items. |
Tag inspection commands.
| Command | Description |
|---|---|
list | Execute list. |
items | Execute items. |
Installed CSL style inspection commands.
| Command | Description |
|---|---|
list | Execute list. |
Official Zotero import and write commands.
| Command | Description |
|---|---|
file | Execute file. |
json | Execute json. |
Read and add child notes.
| Command | Description |
|---|---|
get | Execute get. |
add | Execute add. |
Session and REPL context commands.
| Command | Description |
|---|---|
status | Execute status. |
use-library | Execute use-library. |
use-collection | Execute use-collection. |
use-item | Execute use-item. |
use-selected | Execute use-selected. |
clear-library | Execute clear-library. |
clear-collection | Execute clear-collection. |
clear-item | Execute clear-item. |
history | Execute history. |
Inspect Zotero paths and backend availability.
cli-anything-zotero app status --json
Persist the collection selected in the Zotero GUI.
cli-anything-zotero collection use-selected --json
Render a citation using Zotero's Local API.
cli-anything-zotero item citation <item-key> --style apa --locale en-US --json
Create a child note under an existing Zotero item.
cli-anything-zotero note add <item-key> --text "Key takeaway" --json
Assemble structured context for downstream model analysis.
cli-anything-zotero item context <item-key> --include-notes --include-links --json
0.1.0