Command line
Run any tool from PowerShell, a batch file or a scheduled task with ltk.exe, using the same settings and job files as the app.
ltk.exe is installed beside the desktop app. ltk list, ltk help and ltk license work in every edition; ltk run is part of LitTechKit Pro.
Commands
| Command | What it does |
|---|---|
ltk list | Lists every tool by id; [Pro] marks Pro tools. |
ltk help <tool> | A tool's settings, with their descriptions, types and defaults. |
ltk run <tool> --input … --output … | Runs a tool, with any of its settings. |
ltk run --job <file> | Runs a saved job, or repeats a run from its manifest.json. |
--save-job <file> | Added to ltk run, also saves the settings as a job file. |
ltk license | Shows the edition in effect and the licence's details. |
ltk license install <file.ltklicense> | Installs a licence for the current Windows user. |
ltk license remove | Removes the licence installed for the current user. |
ltk about, ltk about eula, ltk about notices | Version, the licence agreement and third-party notices. |
Settings
Each setting in a tool's guide shows its command-line name under its label (for example --prefix). Pass it as --name value or --name=value. Tick-boxes are --flag to turn on and --no-flag to turn off. Lists take commas, or the same flag repeated:
ltk run file-inventory --input "D:\Matter\Collection" --output "D:\Matter\Reports" --hashes md5,sha256
ltk run page-counts --input "D:\Matter\Collection" --output "D:\Matter\Reports" --no-recurse
Quote any path or value with spaces. Settings you leave out take their defaults, as in the app.
Job files
A job file is JSON naming the tool and its settings. Make one with Save job… in the app or --save-job, or use any run's manifest.json. Passwords and the in-place confirmation are never stored in a job.
Exit codes
| Code | Meaning |
|---|---|
0 | Completed. |
1 | Completed with errors: check errors.csv. |
2 | Usage error, such as an unknown tool or setting. |
3 | Failed. |
4 | Needs Pro. |
130 | Cancelled with Ctrl+C. The report and manifest are still written. |
A script example
$prod = "D:\Matter\Production 3"
ltk run bates-stamp --input "$prod\PDF" --output "$prod\Runs" --prefix ABC --start 1
if ($LASTEXITCODE -ne 0) { Write-Warning "Bates stamp ended with exit code $LASTEXITCODE"; exit $LASTEXITCODE }
--confirm-in-place as well as --in-place, every time. See Run folders and manifests.