CLI
CLI Overview
Run any dLazy tool from the terminal.
dlazy is a thin wrapper over the dLazy tool runner. It always emits a JSON envelope on stdout and human-readable progress on stderr, so you can pipe it freely.
Core Commands
dlazy --help # global usage
dlazy --version # CLI version
dlazy tools list # registry overview
dlazy tools describe gpt-image-2 # full input + output JSON Schema
dlazy gpt-image-2 --prompt "a foggy mountain at dawn"
dlazy <tool> --help # per-tool flags + types + defaultsdlazy <tool> --help is always authoritative — it prints the live flag list, every default value, every conditional flag ([only when ...]), and the inline output schema. The pages here describe the shared scaffolding that wraps every tool command.
Per-Tool Run Flags
These flags are added to every tool command. They mirror the help text emitted by dlazy <tool> -h:
| Flag | Effect |
|---|---|
--dry-run | Print payload + cost estimate without calling API |
--no-wait | For async tools: return { generateId, status } immediately |
--timeout <seconds> | Max seconds to wait for async completion (default 1800) |
--input <jsonOrFile> | Inline JSON or @path/to/file.json — merged under flag values (flags win) |
--batch <n> | Run the tool N times in parallel and merge all outputs (image / video / audio / text / auto only) |
What's in the Rest of This Section
- Global flags —
--api-key,--base-url,--verbose,--output,-l - Output modes —
json/url/textand how to pair them withjq - Pipelines — full reference token table (
-,@N,@N.path,@*,@stdin) - Async & batch —
--no-wait,dlazy status,--batch - Local files — uploading
./file.pnganddata:URLs