Registry / productivity / zotero-fetch-cli

zotero-fetch-cli

JSON →
library1.2.3jsnpmunverified

A CLI tool for fetching bibliographies and PDF attachments from Zotero, designed for integration with CI/CD pipelines. Current version: 1.2.3 (stable). It supports multiple bibliography formats (JSON, BibTeX) and can sync PDF files. Ships TypeScript types. Key differentiator: primarily a command-line interface, not a library. Requires Node >=8.

npm install zotero-fetch-cli
INSTALL
IMPORT
SIG · ZOTERO-FETCH-CLI
Z
zotero-fetch-cli
productivityjavascriptv1.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

zotero-fetch-cli
npx zotero-fetch-cli ... or zotero-fetch ... (if installed globally)
const zoteroFetch = require('zotero-fetch-cli')
This package is a CLI tool, not a library. It should be run from the command line using npx or global install.

Shows how to set environment variables and run the CLI to fetch bibliography and attachments.

export ZOTERO_APIKEY='your-api-key' export ZOTERO_USERID='your-user-id' zotero-fetch bibliography --format=json bibliography.json zotero-fetch attachments ./attachments
Debug
Known issues
gotchaEnvironment variables ZOTERO_APIKEY and ZOTERO_USERID are required for authentication.
fix
Set ZOTERO_APIKEY and ZOTERO_USERID before running the command.
affects: >=0.0.0
Errors
Common errors & fixes
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/zotero-fetch-cli'
Trying to install globally without appropriate permissions.
fix
Use npx instead: npx zotero-fetch-cli ...
Upgrade
Version history
1.2.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
40
OpenAI (training)
1
Resources
zotero-fetch-cli — npm install zotero-fetch-cli · libregistry