{"id":49846,"library":"zotero-fetch-cli","title":"zotero-fetch-cli","description":"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.","status":"active","version":"1.2.3","language":"javascript","source_language":"en","source_url":"https://github.com/Jblew/zotero-fetch-cli","tags":["javascript","typescript"],"install":[{"cmd":"npm install zotero-fetch-cli","lang":"bash","label":"npm"},{"cmd":"yarn add zotero-fetch-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add zotero-fetch-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a CLI tool, not a library. It should be run from the command line using npx or global install.","wrong":"const zoteroFetch = require('zotero-fetch-cli')","symbol":"zotero-fetch-cli","correct":"npx zotero-fetch-cli ...  or  zotero-fetch ... (if installed globally)"}],"quickstart":{"code":"export ZOTERO_APIKEY='your-api-key'\nexport ZOTERO_USERID='your-user-id'\nzotero-fetch bibliography --format=json bibliography.json\nzotero-fetch attachments ./attachments","lang":"typescript","description":"Shows how to set environment variables and run the CLI to fetch bibliography and attachments."},"warnings":[{"fix":"Set ZOTERO_APIKEY and ZOTERO_USERID before running the command.","message":"Environment variables ZOTERO_APIKEY and ZOTERO_USERID are required for authentication.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'1.2.3':24 '8':54 'attach':13 'bibliographi':10,29 'bibtex':32 'ci/cd':20 'cli':4,6 'command':46 'command-lin':45 'current':22 'design':16 'differenti':42 'fetch':3,9 'file':37 'format':30 'integr':18 'interfac':48 'javascript':55 'json':31 'key':41 'librari':51 'line':47 'multipl':28 'node':53 'pdf':12,36 'pipelin':21 'primarili':43 'requir':52 'ship':38 'stabl':25 'support':27 'sync':35 'tool':7 'type':40 'typescript':39,56 'version':23 'zotero':2,15 'zotero-fetch-c':1","created_at":"2026-06-07T17:03:53.421124+00:00","updated_at":"2026-06-07T17:03:53.421124+00:00","problems":[{"fix":"Use npx instead: npx zotero-fetch-cli ...","cause":"Trying to install globally without appropriate permissions.","error":"Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/zotero-fetch-cli'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Jblew/zotero-fetch-cli#readme","github":"https://github.com/Jblew/zotero-fetch-cli","docs":null,"changelog":null,"pypi":null,"npm":"zotero-fetch-cli","openapi_spec":null,"status_page":null,"smithery":null,"categories":["productivity"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}