DocLD CLI
Parse, extract, and edit documents from the command line. The CLI is published on npm as @docld/cli .
Installation
Install globally:
npm install -g @docld/cliRequires Node.js 18 or later.
Authentication
Before using the CLI, authenticate:
docld loginThis opens your browser to DocLD where you can sign in. Alternatively, provide an API key directly:
docld login --key your_api_key_hereYou can also set your API key via environment variable (see below) instead of running docld login.
Configuration
Configuration is stored in:
- Linux/macOS:
~/.config/docld/config.json - Windows:
%APPDATA%/docld/config.json
Environment variables
| Variable | Description |
|---|---|
DOCLD_API_KEY | API key (alternative to docld login) |
DOCLD_API_URL | Custom API URL for self-hosted instances |
Supported file types
| Format | Extensions |
|---|---|
.pdf | |
| Images | .png, .jpg, .jpeg |
| Office documents | .doc, .docx, .ppt, .pptx |
| Spreadsheets | .xls, .xlsx |
Note: The edit command supports only .pdf and .docx.
Next steps
- Commands — Parse, extract, and edit with usage and options
Last updated on