Docs

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

CommandWhat it does
ltk listLists 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 licenseShows the edition in effect and the licence's details.
ltk license install <file.ltklicense>Installs a licence for the current Windows user.
ltk license removeRemoves the licence installed for the current user.
ltk about, ltk about eula, ltk about noticesVersion, 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

CodeMeaning
0Completed.
1Completed with errors: check errors.csv.
2Usage error, such as an unknown tool or setting.
3Failed.
4Needs Pro.
130Cancelled 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 }
In-place modeA tool that changes its input in place needs --confirm-in-place as well as --in-place, every time. See Run folders and manifests.