sources
List the libraries and projects other tools keep that Lem's import reads, one adapter each, and the sources no Lem command reads, each with why.
Invocation#
lem-cli sources [--all] | lem-cli sources discover <adapter> --path <file> | lem-cli sources share [yes|no]Inputs and options#
- A bare invocation lists every adapter. --all is accepted and echoed as all in the answer; the list is the same.
- discover and share are described on their own pages.
Output and state#
Prints JSON with adapters, all and sharing. Each adapter row has adapter (the adapter's name), source, kind and found false. A row of kind E is a source Lem reads and carries read_by, the command that imports it: Zotero's CSL JSON (zotero-csl-json) and Better BibTeX's Better CSL JSON (better-bibtex-csl-json) (import --csl), Mendeley's, Papers' and any other RIS export (mendeley-ris, papers-ris, ris-library) (import --ris), an EndNote XML library (endnote-xml) (import --endnote), Paperpile and JabRef BibTeX (paperpile-bibtex, jabref-bibtex) (import --bibtex), an Overleaf project cloned with git or downloaded as a zip and unpacked (overleaf-git-clone, overleaf-zip) (import --project), a DOI and an arXiv paper (doi, arxiv) (library add).
A row of kind D is a source no Lem command reads, with why and remedy: PubMed, Semantic Scholar, Google Scholar and OpenReview (pubmed, semantic-scholar, google-scholar, openreview) are indexes or reviews, so the work is added by its DOI or arXiv id; an ISBN (isbn) names a book; Obsidian, Notion, Roam, Logseq, Jupyter notebooks and folders of experiment results (obsidian, notion, roam, logseq, jupyter-notebooks, experiment-results) are written into the LaTeX project and imported with import --project; a Word or Google Docs manuscript (word-manuscript, google-docs-manuscript) is exported to LaTeX first.
sharing is the question share answers, or the answer already kept. Listing writes nothing.
Refusals#
- Words that are none of these forms refuse with sources-words-unknown (“sources takes no words, discover <adapter> --path <file>, or share yes|no”), exit 2.