@noedgeai-org/doc2x-cli
v0.1.9
Published
CLI for Doc2X document parsing, translation, and batch workflows.
Readme
@noedgeai-org/doc2x-cli
CLI for Doc2X document parsing, translation, and batch workflows.
Install
npm i -g @noedgeai-org/doc2x-cliRequires Node >=22.
Commands
doc2x login
doc2x logout
doc2x parse <input>
doc2x translate <input>
doc2x batch <parse|translate> [inputs...]
doc2x term list
doc2x models listAuthentication
The CLI supports two auth modes:
--auth-mode client(default): reuse an authenticated desktop client session--auth-mode oauth: use OAuth credentials fromdoc2x login
Examples
doc2x parse ./paper.pdf --to md
doc2x parse ./paper.pdf --to docx --docx-template academic
doc2x translate ./paper.pdf --target-language en --to html
doc2x translate ./paper.pdf --target-model Free
doc2x translate ./paper.pdf --translate-type pdf --pdf-font-strategy page-optimal
doc2x batch parse ./docs --glob "**/*.pdf"Notable Options
--target-model <model>: Translation LLM model ID/name. Defaults to the shared free aggregate modelFree(10001) when the backend advertises it indoc2x models list; pass another listed ID/name to override.--docx-template <template>: Word template for V3 docx export. Values:default,general,academic,business,elegant,minimal,technical.--pdf-font-strategy <strategy>: PDF font strategy for fixed-layout translation (--translate-type pdf). Values:global-consistent,page-optimal.
