Skip to content

Command Reference ​

This reference groups general czur-open commands, applicable options, and result fields. Replace paths and IDs with actual values and quote paths containing spaces. Use --json for machine-readable results, but check exit codes first: argument errors may produce stderr only.

Help and version ​

bash
czur-open --help
czur-open version --json
czur-open scan "YOUR_DEVICE_ID" --help
czur-open image enhance "./scans/page-1.jpg" --pipeline "./pipeline.json" --help
czur-open ocr recognize "./scans/page-1.jpg" --help

version reports the CLI npm package version, including version in JSON, not the Runtime version. Commands support -h / --help; provide required positional arguments when requesting subcommand help.

Environment, authorization, and Runtime ​

CommandPurpose and result
doctorCheck connectivity; returns status, checks, not account validation
auth loginDisplay a browser authorization link and wait, without opening the browser
auth statusRead local account state only, without remote validation
auth logoutClear local account state and attempt remote revocation; does not remove an environment Key
auth checkVerify the selected environment Key or account authorization with Runtime
runtime installDownload and verify an installer; returns status, installerPath, and other fields, without launching it
runtime check-updatesCheck compatible Runtime releases and versions, without upgrading
bash
czur-open doctor --json
czur-open auth login
czur-open auth status --json
czur-open auth check --json
czur-open auth logout --json
czur-open runtime install --json
czur-open runtime check-updates --refresh --json

A nonempty CZUR_OPEN_API_KEY takes priority over accounts, without fallback if invalid. Empty or whitespace-only values use account authorization. login/status/logout manage accounts only. Request Keys from the CZUR User Center and configure them in the environment, not a --api-key argument. See installation and upgrades for both authorization methods.

runtime install accepts --version (exact semantic version), --json, and help options. runtime check-updates also supports --refresh and the command connection options below. doctor additionally accepts --health-url. Account login/status/logout do not use Runtime endpoint options. See Runtime management for statuses and manual installation.

Devices ​

CommandPurpose and result
device listQuery visible devices via devices; an empty list is valid
device get <device-id>Query a device description and capabilities
device open <device-id>Open once, then attempt release; returns status, device_id, result, released
device close <device-id>Request device closure, without forcibly terminating other programs
bash
czur-open device list --json
czur-open device get "YOUR_DEVICE_ID" --json
czur-open device open "YOUR_DEVICE_ID" --json
czur-open device close "YOUR_DEVICE_ID" --json

All four support command connection options. open also accepts positive --width, --height, --fps, and --pixel-format mjpeg|jpeg|bgr24. Choose combinations from device capabilities. open does not retain a session for the next CLI command; use scan directly for normal capture. See device management.

Capture ​

bash
czur-open scan "YOUR_DEVICE_ID" --page-processing single_page --color-mode auto_optimize --format jpg --output-dir "./scans" --json
OptionDefault or constraint
--count1, positive integer; consecutive captures without pausing for page turns
--page-processingsingle_page; also curved_book, keep_original
--color-modeauto_optimize; full enumeration below
--formatjpg; also png, tif, tiff
--qualityInteger 1–100, JPG/JPEG quality; service default when omitted
--target-sizePositive integer matching a device-supported output specification
--output-dir~/Pictures/CZUR Open
--pipeline / --workflowOptional and mutually exclusive; JSON file path / Runtime workflow ID
--capture-timeout15000 milliseconds for capture completion; increase for enhancement
--video-url / --asset-urlCustom Video WSS / Asset HTTPS endpoints

Command connection options are also supported. Results contain status, device_id, files[].path / content_type / size, and optional warnings. Paper, color, and enhancement processing run in that order, delivering final images only. Attached pipelines support single-page image targets only; see capture for restrictions.

Basic image processing ​

CommandPurpose
image process <input-path>Combined paper and color processing
image process-page <input-path>Paper processing
image apply-color-mode <input-path>Color processing
bash
czur-open image process "./scans/page-1.jpg" --page-processing single_page --color-mode auto_optimize --output-dir "./processed" --json
czur-open image process-page "./scans/page-1.jpg" --page-processing curved_book --json
czur-open image apply-color-mode "./scans/page-1.jpg" --color-mode grayscale --json

All three accept --output-dir, --page-processing, --color-mode, --target-size, --quality, and image connection options; select parameters relevant to the operation. Runtime determines unspecified processing defaults. The default output directory is ~/Pictures/CZUR Open. There is no general --format conversion option. Results contain status, operation, input_path, output_path, content_type, and size.

Color modes are auto_optimize, color_enhance, black_white, grayscale, white_paper_seal, certificate, ancient, and no_optimize. Paper modes match capture. See image processing for more examples.

Enhancement and workflows ​

CommandPurpose
image enhance-capabilitiesDiscover availability and parameter defaults / schema
image workflow listList workflows in the connected Runtime
image workflow get <workflow-id>Retrieve one workflow
image workflow save <json-file>Save or update configuration without executing enhancement
image workflow delete <workflow-id>Delete a workflow; a write operation
image enhance <input...>Enhance one or more ordered images and download outputs
bash
czur-open image enhance-capabilities --json
czur-open image workflow list --json
czur-open image workflow save --file "./workflow.json" --json
czur-open image workflow get "YOUR_WORKFLOW_ID" --json
czur-open image workflow delete "YOUR_WORKFLOW_ID" --json
czur-open image enhance "./scans/page-1.jpg" --pipeline "./pipeline.json" --output-dir "./enhanced" --task-timeout 600000 --json
czur-open image enhance "./scans/page-1.jpg" --workflow "YOUR_WORKFLOW_ID" --json

Workflow files contain pipeline, optionally name and workflow_id for updates. A { "workflow": { ... } } wrapper is also supported. --file is valid only for workflow save, as an alternative to the positional file argument. Workflows live in Runtime, not private account cloud storage.

enhance requires exactly one of --pipeline <json-file> or --workflow <id>. It also accepts --output-dir, --task-timeout (default 300000 milliseconds), and image connection options. Capability discovery and workflow management accept image connection options, not processing/output/task options. Independent enhancement defaults to ~/Pictures/CZUR Open, returning status, task_id, files[].path / file_uri / content_type / size, warnings, and progress.

Local steps are crop_enhance, normalize_spec, rotate, blank_page_detect, and red_green_head, with parameters from discovery. See local enhancement for pipeline ordering, skip behavior, and document outputs.

OCR ​

bash
czur-open ocr extract-text "./scans/page-1.jpg"
czur-open ocr extract-text "./scans/page-1.jpg" --json
czur-open ocr recognize "./scans/page-1.jpg" "./scans/page-2.jpg" --format pdf --export-type multi-page --output-dir "./documents" --json

extract-text accepts one image and image connection options. Plain text goes to stdout by default. JSON fields include status, text, recognized, blocks, and optional image width / height. Blocks contain text, coordinates, dimensions, and optional confidence/font size. Empty text is a valid result.

recognize accepts ordered images, image connection options, and these export options:

OptionDefault or constraint
--formatdocx; choices txt, pdf, docx, xlsx, ofd, json
--export-typemulti-page; also single-page; underscore aliases accepted
--paramsOptional JSON object file containing official OCR parameters
--output-dir~/Documents/CZUR Open
--task-timeout300000 milliseconds, positive integer

Exports return status, task_id, files[].path / file_uri / content_type / size, progress, format, and export_type. --format json exports a JSON file; --json controls CLI stdout. Export options are not accepted by extract-text. See OCR for usage and result review.

Connections, waiting, and automation ​

Command connection options are --json, --command-url, --ca-file, and --timeout, supported by doctor, auth check, device commands, scan, and runtime check-updates. Image connection options additionally include --asset-url, for image and ocr. scan also supports --asset-url. These are not universal global options.

The default command endpoint is wss://sdk-runtime.localhost:18090, with a default per-request/check timeout of 3000 milliseconds for most commands; runtime check-updates defaults to 5000 milliseconds. Time limits must be positive integers. --ca-file configures custom CA trust without disabling verification; --insecure is unsupported. Use --capture-timeout for capture waiting and --task-timeout for long tasks, not --timeout.

CLI long tasks submit, wait, and download within one process, without background handles or cross-process recovery. Interruption/timeouts attempt cancellation without automatic resubmission. See JSON output and automation for exit-code and field differences.