Single-user, agent-first CLI for Zotero (literature management, PDF upload, RSS query)
Project description
zotero-cli
Single-user, agent-first CLI for Zotero — literature management, PDF upload, RSS query.
Installation
# From PyPI after the first release is published
uv tool install zotero
# From source
git clone https://github.com/cywwycedward/zotero-cli.git
cd zotero-cli
uv sync --extra dev
uv run zotero-cli --help
Quick Start
# Initialize config
zotero-cli config init
# Set API key
zotero-cli config set api_key <your-zotero-api-key>
zotero-cli config set library_id <your-library-id>
# List items
zotero-cli items list
# Attach a PDF (ZFS default)
zotero-cli items create --type journalArticle --title "My Paper" --attach paper.pdf
Commands
| Group | Commands |
|---|---|
items |
list, search, show, create, update, delete, attach, export |
collections |
list, show, create, delete, add-items, remove-items |
tags |
list, add, remove, rename, delete |
feeds |
list, show, items |
config |
init, show, set, get, validate, profiles |
schema |
JSON command tree introspection |
Global Flags
--json JSON envelope output
--profile Profile name (default: "default")
--quiet, -q Quiet mode: keys only
Output Modes
- Default: Human-readable (KV, tree, summary, YAML) — designed for agent consumption
--json: Full JSON envelope withok,data,error,meta— for scripts andjq--quiet: Keys only, one per line — forxargspipelining
Configuration
~/.config/zotero-cli/config.toml (permission 0600):
[default]
api_key = "..."
library_id = "12345678"
library_type = "user"
[default.webdav] # Optional: enables WebDAV attachment upload
url = "https://dav.example.com"
storage_path = "/zotero"
username = "myuser"
password = "mypass"
[default.sqlite]
path = "/home/user/Zotero/zotero.sqlite"
Environment overrides: ZOTERO_CLI_<PROFILE>_<KEY> (e.g. ZOTERO_CLI_DEFAULT_API_KEY).
Development
uv sync --extra dev
uv run ruff check src tests
uv run mypy src
uv run pytest --cov=src
uv build
See DEVELOPMENT.md for the full development guide and CONTRIBUTING.md for contribution expectations.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zotero-0.2.3.tar.gz.
File metadata
- Download URL: zotero-0.2.3.tar.gz
- Upload date:
- Size: 188.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7472be7ab1a2b6283155cbe9156615c9d993d3a832aca068020303f24551a257
|
|
| MD5 |
8d1c84c474c26eca2d8bbf7ba829b79e
|
|
| BLAKE2b-256 |
68a117f67f0dc0c9b780bcf902190bda84b211451f4432aea6bdf1cd989797ed
|
Provenance
The following attestation bundles were made for zotero-0.2.3.tar.gz:
Publisher:
release.yml on cywwycedward/zotero-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zotero-0.2.3.tar.gz -
Subject digest:
7472be7ab1a2b6283155cbe9156615c9d993d3a832aca068020303f24551a257 - Sigstore transparency entry: 1808264324
- Sigstore integration time:
-
Permalink:
cywwycedward/zotero-cli@680d68cfd6b052fb52007167ef1f232e6d28f78a -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/cywwycedward
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@680d68cfd6b052fb52007167ef1f232e6d28f78a -
Trigger Event:
release
-
Statement type:
File details
Details for the file zotero-0.2.3-py3-none-any.whl.
File metadata
- Download URL: zotero-0.2.3-py3-none-any.whl
- Upload date:
- Size: 63.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d40bf6f3d57135cd0340e1b6cdf8b67e1685d9b616c6b3ff8b10d9b93d695fa6
|
|
| MD5 |
effd7163c347f2030d18db253e576915
|
|
| BLAKE2b-256 |
25011c6a0ee7048b514f769c0659f649f6b764619348244a99610355a007510a
|
Provenance
The following attestation bundles were made for zotero-0.2.3-py3-none-any.whl:
Publisher:
release.yml on cywwycedward/zotero-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zotero-0.2.3-py3-none-any.whl -
Subject digest:
d40bf6f3d57135cd0340e1b6cdf8b67e1685d9b616c6b3ff8b10d9b93d695fa6 - Sigstore transparency entry: 1808264370
- Sigstore integration time:
-
Permalink:
cywwycedward/zotero-cli@680d68cfd6b052fb52007167ef1f232e6d28f78a -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/cywwycedward
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@680d68cfd6b052fb52007167ef1f232e6d28f78a -
Trigger Event:
release
-
Statement type: