Commands & flags
Full reference for pixl's commands and generation flags.
pixl [COUNT] [PROMPT] [OUT_DIR] is the default (generate) form; pixl gen is the explicit alias.
With no arguments, pixl opens the gallery idle.
Generation flags
| flag | default | description |
|---|---|---|
--model turbo|sdxl | turbo | base model |
--cfg <f> | 1 (turbo) / 7 (sdxl) | classifier-free guidance |
--steps <n> | 8 (turbo) / 25 (sdxl) | diffusion steps |
--seed <n> | random | base seed (omit for random) |
--size <WxH> | 512x512 | generation resolution (multiple of 8) |
--negative <text> | — | negative prompt (SDXL / cfg > 1) |
--no-lora | off | disable the pixel-art LoRA |
--lora-weight <f> | 1.0 | pixel-art LoRA strength |
-c, --colors <n> | 16 | palette size for the post-process pass (0 = keep all distinct cell colors) |
--pixel-size <n> | auto | force the logical cell size in source pixels (bypass grid detection) |
--no-postprocess | off | skip the pixelize pass, save the raw render |
--view | off | force the interactive gallery on, even on terminals without inline graphics |
--no-view | off | force the headless batch output |
--saved-dir <path> | ~/.pixl/saved | where saved favorites are copied |
-j, --jobs <n> | auto | pixelize/save worker threads |
--json | off | emit one JSON line per finished image |
--quiet | off | suppress progress output |
--fail-fast | off | abort on the first failed image |
--low-prio (--bg, --background) | off | run at low priority (macOS background QoS) |
Other commands
pixl pixelize
Snap existing images to true pixel art — no GPU or model needed (works in every build).
pixl pixelize sprite.png --scale 8
pixl pixelize *.png -o out/ --colors 24| flag | default | description |
|---|---|---|
-o, --out <path> | next to input | output file (single input) or directory |
-c, --colors <n> | 16 | palette size |
--pixel-size <n> | auto | force the logical cell size in source pixels |
--target-cells <n> | 128 | fallback logical long-edge (cells) used only when grid detection fails |
--scale <n> | 1 | nearest-neighbor upscale of the result |
pixl view <dir>
Browse a directory of images in the interactive gallery.
pixl models
pixl models ls # list cached merged-UNet files and show where weights live
pixl models path # print the cache directories
pixl models clear # delete pixl's merged-UNet cache (not the shared weights)
pixl models clear --yes # skip the confirmation prompt