## Implement: biblio CLI commands for zotero and pool promote Add CLI subcomman
Implement: biblio CLI commands for zotero and pool promote¶
Add CLI subcommands that expose the Zotero and pool promote MCP functions from the command line.
Tasks¶
biblio zotero pullCLI command:biblio zotero pull [--collection KEY] [--tags TAG,...] [--dry-run]- Reads zotero config from biblio.yml
- Calls
zotero.pull_collection()orzotero.pull_incremental() -
Reports pulled items count
-
biblio zotero pushCLI command:biblio zotero push [--citekeys CK,...] [--tags] [--notes] [--ids] [--force] [--dry-run] - Pushes enrichments back to Zotero
-
Default: push tags + ids, not notes
-
biblio zotero statusCLI command:biblio zotero status -
Shows last sync time, item counts, library info
-
biblio pool promoteCLI command:biblio pool promote CK1 CK2 ... [--target PATH] [--dry-run] biblio pool promote --all-local [--target PATH] [--dry-run] -
Promotes papers from project to pool
-
Add
zoterosection to config schema inpackages/biblio/src/biblio/config.py:zotero: api_key_env: ZOTERO_API_KEY library_type: user library_id: "12345" sync_target: pool
Key files¶
packages/biblio/src/biblio/cli.py— all CLI commandspackages/biblio/src/biblio/config.py— add ZoteroConfigpackages/biblio/src/biblio/zotero.py— already implementedpackages/biblio/src/biblio/pool.py— promote_to_pool already implemented
Related Notes¶
- docs/log/issue/issue-arash-20260404-014910-856339.md — Directly related: registering the same Zotero + pool tools in the MCP server, companion implementation task
- docs/log/issue/issue-arash-20260403-210020-146442.md — Implements biblio zotero push-tags, which this CLI command wraps
- docs/log/issue/issue-arash-20260403-210002-675833.md — Implements biblio zotero pull, which this CLI command wraps
- docs/log/issue/issue-arash-20260403-205942-590539.md — Implements biblio pool promote, which this CLI command wraps
- docs/log/issue/issue-arash-20260403-201609-055675.md — Spec for the biblio ↔ Zotero integration model that defines the config schema this CLI uses