Tutorial 3: Library workflows
This tutorial covers adsfolio library commands for listing, reading, and syncing a library BibTeX file.
0) Start with --help
First, inspect the library command group and its subcommands:
adsfolio library --help
adsfolio library list --help
adsfolio library get --help
adsfolio library watch --help
Key library options:
Option |
Meaning |
When to use |
|---|---|---|
|
Number of libraries to fetch |
Accounts with many libraries |
|
JSON output for list result |
Scripted selection by id/name |
|
Return bibcodes exactly as stored |
Debugging library state or ADS normalization differences |
|
Export one library directly to a |
One-shot sync for LaTeX projects |
|
Polling iteration count ( |
Long-running background sync |
|
Seconds between checks |
Tune API usage vs freshness |
|
Status-print cadence |
Reduce noisy logs in long sessions |
|
Append local BibTeX file to watched export |
Merge ADS refs + local/manual entries |
1) List your libraries
adsfolio library list
For JSON output:
adsfolio library list --rows 50 --json
2) Inspect one library
adsfolio library get <library_id>
To return the raw bibcodes exactly as stored:
adsfolio library get <library_id> --raw
3) Export library as BibTeX
adsfolio library get <library_id> --bibtex --output references.bib
4) Watch library and auto-refresh BibTeX
adsfolio library watch <library_id> \
--output references.bib \
--num-iter 0 \
--interval 10
Notes:
--num-iter 0means run indefinitely.To stop the watch, press
Ctrl+C.The watcher writes the output file when it starts and again each time the library changes.
Point
--outputat a folder that your LaTeX project reads, for example a folder that you sync with Overleaf.
5) Add style and extra BibTeX content during watch
adsfolio library watch <library_id> \
--output references.bib \
--journal full \
--additional local_notes.bib \
--num-iter 0
6) Tune status logs
adsfolio library watch <library_id> \
--info-interval 10 \
--interval 5 \
--num-iter 200
Next
Continue with Tutorial 4: PDF workflows.