Limai Docs
CLI Reference

documents

Document upload, processing, and data retrieval

$limai documents <subcommand>

Upload documents, trigger extraction processing, retrieve extracted data, and submit corrections.

Options
--jsonOutput raw JSON
--verboseEnable debug logging

Subcommands

limai documents upload <extractionSchemaId> <file>

Upload a single document for extraction.

limai documents upload <extractionSchemaId> <file>

Detects and reports duplicate files automatically.

limai documents process <extractionSchemaId> <fileId>

Trigger extraction processing on an uploaded document.

$limai documents process <extractionSchemaId> <fileId>

Process a document for extraction. Runs synchronously by default.

Options
--asyncProcess asynchronously (returns job ID)
--waitWait for completion (implies --async)

limai documents get <fileId>

Get the extracted data for a file.

$limai documents get <fileId>

Get extracted file data.

Options
--extraction-schema-id <id>Extraction schema ID

limai documents correct <extractionSchemaId> <fileId>

Submit corrections for extracted data.

$limai documents correct <extractionSchemaId> <fileId>

Submit corrections for extracted data.

Options
--corrections <file>JSON file with corrections (required)

Examples

Upload and process synchronously

limai documents upload es_abc123 ./invoice.pdf
limai documents process es_abc123 file_xyz789

Process asynchronously and wait

limai documents process es_abc123 file_xyz789 --wait

Get extracted data as JSON

limai documents get file_xyz789 --json

Submit corrections

limai documents correct es_abc123 file_xyz789 --corrections fixes.json