Based on upstream documentation. These steps have not been independently tested in the desktop app; menu labels and behavior may differ by release.
Step by step
Choose PDF and export options for this build
v0.22.0 convert accepts --pdf-dpi and --pdf-pages N or N-M; --pdf-editable is experimental. --metadata none omits document XMP and free-form text from flat exports, but does not remove ICC, EXIF or resolution; PSD, PSB and .pcraft retain XMP. --no-maximize-compatibility can store a white merged placeholder in layered PSD/PSB, so composite-only readers may show white; keep compatibility enabled unless your workflow allows this.
Choose native GPU acceleration explicitly
v0.22.0 convert, run, batch, serve and headless mcp default to CPU composition. --gpu or PHOTOCRAFT_GPU=1 enables optional GPU rendering with CPU fallback; --no-gpu disables it. Layered/native saves, thumbnails and file.export.quickExport remain CPU operations. info --detail adds text runs and layer-effect settings. This is separate from browser graphics startup.
Obtain the official CLI
Check the official product page and release assets for a CLI build that matches your platform. A CLI archive is different from the desktop installer.
Install independently of the build directory
For a tagged source checkout with the documented prerequisites, cargo install --path apps/photocraft-cli --locked installs a binary that survives cargo clean. Linux DEB/RPM packages already install /usr/bin/photocraft-cli. Put the installed bin directory on the PATH inherited by your client, or use its absolute executable path. Installing a CLI does not register or start MCP.
Read the installed help
Run photocraft-cli --help, then photocraft-cli run --help. Help from the installed binary is the best starting point when documentation for main differs from your release.
Test one command on a copy
Use a small input and a separate output directory. Upstream documents commands such as filter.sharpen.smartSharpen. Verify its parameters in your release before applying it to a folder. The example below is upstream syntax, not a locally tested recipe.
Use actions and filename templates carefully
v0.22.0 batch accepts .atn actions and the CLI flags --recursive, --naming, --start-serial, --stop-on-error and --error-log. Templates support {name}, {serial}, {date} and {ext}; dates use UTC. An explicit template is the whole filename: {name}_{serial} adds no extension, while {name}_{serial}{ext} does. Failed inputs still consume their serial position. Test the action and names before processing originals.
Opt in to subfolders
Folder scanning uses includeSubfolders: true or CLI batch --recursive and is off by default. Scans remain bounded to 32 levels and 100000 files. Batch writes all subfolder inputs flat into its output folder: a later same-name result replaces an earlier result. Image Processor retains its separate naming/collision behavior. Batch rejects plans that overwrite unread inputs. Choose a unique naming template and inspect a small run first.
Re-record ID-based layer selections
Newly recorded Select Layer action steps use names; duplicate names require an occurrence index. Older numeric-ID steps do not automatically acquire names, so re-record them for reusable actions. Missing or ambiguous targets can stop playback.
Set DDS export options explicitly
For DDS output, the CLI exposes --dds-compression (none, bc1, bc2 or bc3) and --dds-mipmaps. Verify your subcommand help before use; uncompressed output without mipmaps is the default. The option does not add cubemap, volume or BC4–BC7 support.
Prevent accidental input overwrite
convert refuses an output that resolves to its input unless --in-place is explicitly supplied. Batch likewise refuses an output directory that is its input without that flag. Prefer separate outputs; --in-place deliberately permits overwriting originals. JPEG CLI output also accepts --jpeg-format baseline, optimized or progressive; its --quality scale is 1–100, not the dialog scale 0–12.
Treat launch mistakes as errors
The v0.22.0 CLI validates typed values, rejects repeated single-value options and incompatible mode flags, and reports usage errors on stderr with exit 2. Use the installed subcommand help after upgrading. Both convert and run --out refuse an output that resolves to the input without explicit --in-place; separate outputs remain safer.
Check before batching
Inspect the output’s format, dimensions, appearance, and layers as applicable. Only then use batch help and a tested action list. Keep the originals outside the output directory.
Check input formats and filled strokes
Batch folder input accepts the formats PhotoCraft can open. Discover paint.stroke parameters before using fill: true, which fills an enclosed region rather than merely drawing its outline. Do not assume every imported format can be exported with the same layers or bit depth; inspect command warnings and saved copies.
Use the bundled AppImage CLI
The Linux AppImage accepts --cli before CLI arguments, for example ./photocraft-<version>-linux-x86_64.AppImage --cli --help or --cli mcp. CLI launch skips desktop integration. In run and batch, Deselect with no selection is treated as a no-op like action playback; other errors still need review.
Reuse an Actions JSON set
CLI batch accepts supported JSON action forms as well as .atn input. For a JSON action set, --action selects a named action; the full set is available when one action calls another. Test parameters and destinations on a small copy. This CLI support is not a claim that every Actions-panel import/export menu accepts JSON.
Review partial batch results
Stop On Error leaves later inputs unprocessed. Cancellation completes the current file and returns completed files and skipped inputs; saved files remain on disk. Error Log is UTF-16 LE with BOM and CRLF even when no input fails. A log-write failure is returned as errorLogError alongside per-file results. Inspect outputs before rerunning; a cancelled or failed run is not an all-or-nothing rollback.
Choose TIFF and native-preview output options
convert, run and batch accept --tiff-transparency on|off, --tiff-pyramid and --pcraft-full-composite. The full-size .pcraft PNG is opt-in and may be omitted at size or allocation limits; inspect manifest.full_composite instead of assuming it exists. --approve-high-memory explicitly permits high-memory PSD/PSB imports only within the hard memory budget; it does not remove that budget.
Inspect legacy action imports
CLI batch recognizes ATN versions 12 and 16. Imports report legacy step-name encoding warnings; actions.load can specify an encoding such as gbk, big5 or shift_jis. This is a command parameter, not a new CLI flag. Inspect names, settings and output paths on a copy before batch playback.
photocraft-cli --help
photocraft-cli run --help
# Upstream example: verify against your installed release
photocraft-cli run input.psd --cmd filter.sharpen.smartSharpen --params '{"amount":80}' --out output.pngSources and further reading
PhotoCraft is in early alpha. Keep original files and test a copy before relying on it for important work.
Suggest a correction