| name | zotero-cli |
| version | 1.0.0 |
| description | Command-line interface for Zotero - search your Zotero library, add/edit notes, read attachments, and manage bibliographic references from the terminal. |
| homepage | https://github.com/jbaiter/zotero-cli |
| metadata | {"openclaw":{"emoji":"📚","requires":{"bins":["python3"],"anyBins":["zotcli","zotero-cli"]},"install":[{"id":"pip","kind":"pip","package":"zotero-cli","label":"Install zotero-cli Python package (pip)"},{"id":"pipx","kind":"pipx","package":"zotero-cli","label":"Install zotero-cli Python package (pipx - recommended for systems with PEP 668 compliance)","platforms":["linux-debian","linux-ubuntu","linux-arch","linux-fedora","linux-rhel"]}]}} |
Zotero CLI
Command-line interface for the Zotero reference manager, providing terminal-based access to your Zotero library through the Zotero API.
Quick Start
sudo apt install pipx && pipx ensurepath && pipx install zotero-cli
zotcli configure
zotcli query "machine learning"
zotcli add-note "\"deep learning\""
zotcli read "\"attention mechanism\""
📖 Detailed guide: QUICKSTART.md
Installation
pipx (Recommended for PEP 668 systems)
pipx install zotero-cli
pip (Generic)
pip install --user zotero-cli
export PATH="$HOME/.local/bin:$PATH"
Virtual Environment
python3 -m venv ~/.venvs/zotero-cli
source ~/.venvs/zotero-cli/bin/activate
pip install zotero-cli
📖 Complete installation guide: INSTALL.md
Core Commands
| Command | Description |
|---|
zotcli query "topic" | Search library |
zotcli add-note "paper" | Add a note |
zotcli edit-note "paper" | Edit a note |
zotcli read "paper" | Read first PDF attachment |
zotcli configure | Configure API credentials |
Configuration
export VISUAL=nano
zotcli configure
./scripts/setup_and_check.sh
Helper Scripts
| Script | Purpose |
|---|
setup_and_check.sh | Automated setup and verification |
backup_restore.sh | Backup and restore configuration |
update_check.sh | Check for updates |
quick_search.py | Formatted search output |
export_citations.py | Export citations (BibTeX, RIS) |
batch_process.sh | Process multiple queries |
Usage examples:
python scripts/quick_search.py "topic" --format table
python scripts/export_citations.py "topic" --format bib > refs.bib
./scripts/backup_restore.sh backup
./scripts/update_check.sh check
📖 Scripts documentation: scripts/README.md
Query Syntax
"neural AND networks"
"(deep OR machine) AND learning"
"learning NOT neural"
"\"deep learning\""
"transform*"
Workflows
Literature Review
zotcli query "topic"
zotcli add-note "paper"
python scripts/export_citations.py "topic" --format bib > refs.bib
Daily Research
python scripts/quick_search.py "\"recent\"" --format table
zotcli add-note "\"interesting paper\""
./scripts/backup_restore.sh backup
📖 More examples: EXAMPLES.md
Documentation
Troubleshooting
Command not found:
export PATH="$HOME/.local/bin:$PATH"
pipx ensurepath
Permission denied (PEP 668 systems):
pipx install zotero-cli
Configuration errors:
zotcli configure
📖 Detailed troubleshooting: INSTALL.md
Quick Reference
zotcli query "topic"
zotcli add-note "paper"
zotcli edit-note "paper"
zotcli read "paper"
./scripts/setup_and_check.sh
./scripts/backup_restore.sh backup
./scripts/update_check.sh check
./scripts/batch_process.sh queries.txt --output results.txt
For complete documentation: