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
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" --helpversion 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
| Command | Purpose and result |
|---|---|
doctor | Check connectivity; returns status, checks, not account validation |
auth login | Display a browser authorization link and wait, without opening the browser |
auth status | Read local account state only, without remote validation |
auth logout | Clear local account state and attempt remote revocation; does not remove an environment Key |
auth check | Verify the selected environment Key or account authorization with Runtime |
runtime install | Download and verify an installer; returns status, installerPath, and other fields, without launching it |
runtime check-updates | Check compatible Runtime releases and versions, without upgrading |
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 --jsonA 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
| Command | Purpose and result |
|---|---|
device list | Query 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 |
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" --jsonAll 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
czur-open scan "YOUR_DEVICE_ID" --page-processing single_page --color-mode auto_optimize --format jpg --output-dir "./scans" --json| Option | Default or constraint |
|---|---|
--count | 1, positive integer; consecutive captures without pausing for page turns |
--page-processing | single_page; also curved_book, keep_original |
--color-mode | auto_optimize; full enumeration below |
--format | jpg; also png, tif, tiff |
--quality | Integer 1–100, JPG/JPEG quality; service default when omitted |
--target-size | Positive integer matching a device-supported output specification |
--output-dir | ~/Pictures/CZUR Open |
--pipeline / --workflow | Optional and mutually exclusive; JSON file path / Runtime workflow ID |
--capture-timeout | 15000 milliseconds for capture completion; increase for enhancement |
--video-url / --asset-url | Custom 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
| Command | Purpose |
|---|---|
image process <input-path> | Combined paper and color processing |
image process-page <input-path> | Paper processing |
image apply-color-mode <input-path> | Color processing |
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 --jsonAll 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
| Command | Purpose |
|---|---|
image enhance-capabilities | Discover availability and parameter defaults / schema |
image workflow list | List 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 |
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" --jsonWorkflow 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
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" --jsonextract-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:
| Option | Default or constraint |
|---|---|
--format | docx; choices txt, pdf, docx, xlsx, ofd, json |
--export-type | multi-page; also single-page; underscore aliases accepted |
--params | Optional JSON object file containing official OCR parameters |
--output-dir | ~/Documents/CZUR Open |
--task-timeout | 300000 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.