General Options
--batch or -b
Do not start the UI, run in batch mode.
--preview or -p
Do not execute actions, just print what will be done.
--verbose or -v
Explain what is being done (verbose output).
--debug
Extreme verbose mode and copy log to desktop.
--help or -?
Display help information and exit.
--version
Output version information and exit.
File Operations
--save-as <filename>
Save the last given sprite with a different format.
--palette <filename>
Change the palette of the last given sprite.
--oneframe
Load just the first frame of animations.
Image Transformations
--scale <factor>
Resize all previously opened sprites by the given scale factor.
--shrink-to <width>,<height>
Shrink each sprite if it is larger than the specified dimensions. Maintains aspect ratio.
--crop <x>,<y>,<width>,<height>
Crop all images to the specified rectangle.
--slice <name>
Crop the sprite to the given slice area.
--trim
Trim the whole sprite for --save-as or individual frames for --sheet.
--trim-sprite
Trim the whole sprite (for both --save-as and --sheet).
--trim-by-grid
Trim all images by their corresponding grid boundaries before exporting.
--extrude
Extrude all images by duplicating edge pixels one pixel outward.
Color Modes and Palettes
--color-mode <mode>
Change the color mode of all previously opened sprites.
Modes:
rgb- RGB color modegrayscale- Grayscale color modeindexed- Indexed color mode (uses palette)
--dithering-algorithm <algorithm>
Dithering algorithm used when converting from RGB to Indexed color mode.
Algorithms:
none- No ditheringordered- Ordered dithering (Bayer matrix)old- Legacy dithering algorithmerror-diffusion- Error diffusion dithering
--dithering-matrix <id>
Matrix used for ordered dithering algorithm.
Built-in matrices:
bayer2x2- 2×2 Bayer matrixbayer4x4- 4×4 Bayer matrixbayer8x8- 8×8 Bayer matrixfilename.png- Custom matrix from PNG file
Layer Options
--layer <name> or --import-layer <name>
Include just the specified layer in the sheet or save operation.
Can be used multiple times to include multiple layers:
--all-layers
Make all layers visible. By default, hidden layers are ignored.
--ignore-layer <name>
Exclude the specified layer in the sheet or save operation.
--split-layers
Save each visible layer as a separated file.
Animation and Tag Options
--tag <name> or --frame-tag <name>
Include only frames with the specified tag.
--play-subtags
Play subtags and repeats when saving frames of an animated sprite.
--split-tags
Save each tag as a separated file.
--frame-range <from>,<to>
Export only frames in the specified range.
--tag, the range is relative to the tag:
--ignore-empty
Do not export empty frames or cels.
Slice Options
--split-slices
Save each slice as a separated file.
Grid Options
--split-grid
Save each grid tile as a separated file.
Sprite Sheet Options
--sheet <filename>
Image file to save the sprite sheet texture.
--data <filename>
JSON file to store the sprite sheet metadata.
--sheet-type <type>
Algorithm to create the sprite sheet.
Types:
horizontal- Single horizontal rowvertical- Single vertical columnrows- Multiple rows (use with--sheet-columns)columns- Multiple columns (use with--sheet-rows)packed- Bin-packing algorithm
--sheet-pack
Shorthand for --sheet-type packed.
--sheet-width <pixels>
Fixed width for the sprite sheet.
--sheet-height <pixels>
Fixed height for the sprite sheet.
--sheet-columns <columns>
Fixed number of columns for --sheet-type rows.
--sheet-rows <rows>
Fixed number of rows for --sheet-type columns.
--format <format>
Format to export the data file.
Formats:
json-hash- JSON object with frame names as keys (default)json-array- JSON array of frames
--merge-duplicates
Merge all duplicate frames into one in the sprite sheet.
--border-padding <value>
Add padding on the texture borders.
--shape-padding <value>
Add padding between frames.
--inner-padding <value>
Add padding inside each frame.
Tileset Options
--export-tileset
Export only tilesets from visible tilemap layers.
Metadata Options
--list-layers
List layers of the next given sprite or include layers in JSON data.
--list-layer-hierarchy
List layers with groups or include layer hierarchy in JSON data.
--list-tags
List tags of the next given sprite or include frame tags in JSON data.
--list-slices
List slices of the next given sprite or include slices in JSON data.
Filename Templates
--filename-format <format>
Special format to generate filenames.
Available variables:
{title}- File title (without extension){frame}- Frame number{tag}- Tag name{layer}- Layer name{group}- Group name{slice}- Slice name
--tagname-format <format>
Special format to generate tag names in JSON data.
Scripting Options
--shell
Start an interactive console to execute scripts.
--script <filename>
Execute a specific Lua script.
--script-param <name>=<value>
Pass parameters to scripts executed from the CLI.
Access in scripts via app.params:

