1.0.2 • Published 6 years ago
zotero-cli v1.0.2
zotero-cli
node
Run the following command to install dependencies
npm installThen run to run the script:
npm start -- <your args>E.g.
npm start -- tags --countFor compiled JS:
npm run buildThen:
./bin/zotero-cli.js <your args>E.g.
./bin/zotero-cli.js tags --countDocumentation
Configuration
Get help with
zotero-cli -hOptional arguments:
-h, --help Show this help message and exit.
--api-key API_KEY
--config CONFIG
--user-id USER_ID
--group-id GROUP_ID
--indent INDENTYou can create a config.toml file as follows
api-key = "..."
group-id = 123
library-type = "group"
indent = 4A file called zotero-cli.toml is picked up automatically.
Commands
Get help with
zotero-cli -hwhich returns a set of commands, such as key,collection,collections,items,item,publications,trash,tags,searches,attachment,types,fields. You can get help on any of these with
zotero-cli <command> --helpe.g.
zotero-cli collection --help