A command-line interface for processing Aseprite files and assets, built with Go.
CLI interface for aseprite assets interaction. For in-terminal opening of aseprite files and more.
Note
If commands missing arg - it means that they work with surveys (interactive questions) instead of flags ( watch surveys-structure)
aseprite-assets
├── list (l) [FLAG]
│ └── List existing aseprite assets
├── config (cfg) [command]
│ ├── info: Display configuration information
│ ├── edit: Edit configuration using a TUI
│ └── open: Open configuration file
│ └── --app-path (-a): Specify app to open the config file
├── sprite (command)
│ └── create (c, cr): Create a new aseprite sprite with the specified options
├── palette (p)
│ └── create (c, cr): Create a new color palette using OpenAI API (surveys used instead of flags)
├── show (sh) [ARGS] [FLAG]
│ └── Preview aseprite sprite or palette in terminal
├── export (e, exp) [FLAGS]
│ └── Export existing aseprite (ase) files by format or output template path and with optional scales or sizes specified- Download the latest release from here
- Extract the archive to a folder of your choice
- Add the folder to your PATH environment variable
- And you are ready to go!
aseprite-assets --helpTo list all existing aseprite sprites, use:
aseprite-assets list -sTo list all existing aseprite palettes, use:
aseprite-assets list -pTo list all existing aseprite sprites recursively, use:
aseprite-assets list -prTo display the current configuration:
aseprite-assets config infoTo edit the configuration using a TUI:
aseprite-assets config editTo open the configuration file with a specific application:
aseprite-assets config open --app-path "path/to/application"To create a new aseprite sprite:
aseprite-assets sprite createTo create a new color palette using OpenAI API, follow the interactive prompts:
aseprite-assets palette createTo preview an aseprite sprite or palette in the terminal:
aseprite-assets show --filename "path/to/file.aseprite"To show a palette preview with custom colors format and palette size:
aseprite-assets show --filename "path/to/file.gpl" --color-format "rgb" --output-row-count 10 --palette-previewTo export some existing aseprite sprite to png use:
aseprite-assets export --sprite-filename "path/to/file.aseprite" --output-filename "path/to/output-file.png"Or (in this case you will export sprite to the same location with changed extension only):
aseprite-assets export --sprite-filename "path/to/file.aseprite" --format pngTo export sprite for multiple sizes to the same as sprite location use:
# args separated by comma and format is numberxnumber
aseprite-assets export --sprite-filename "path/to/file.aseprite" --format png --sizes 32x32,64x64,128x128Or (to export to different location):
# args separated by comma and format is numberxnumber
aseprite-assets export --sprite-filename "path/to/file.aseprite" --output-filename "path/to/file.png" --sizes 32x32,64x64,128x128
# command will create path/to/file_32x32.png, path/to/file_64x64.png, path/to/file_128x128.png filesTo export sprite for multiple scales to the same as sprite location use:
# args separated by comma and format is numberxnumber
aseprite-assets export --sprite-filename "path/to/file.aseprite" --format png --scales 2,4,6Or (to export to different location):
# args separated by comma and format is numberxnumber
aseprite-assets export --sprite-filename "path/to/file.aseprite" --output-filename "path/to/file.png" --scales 2,4,6
# command will create path/to/file_2x.png, path/to/file_4x.png, path/to/file_6x.png filesThe sprite create command uses the following survey questions:
- Asset name (without extension): The name of the sprite.
- Open aseprite after asset creation?: Whether to open aseprite after sprite creation.
- Width: The width of the sprite.
- Height: The height of the sprite.
- Color mode: The color mode of the sprite (indexed, rgb, gray, tilemap).
- Output path: The output path for the sprite.
The palette create command uses the following survey questions:
- Color palette description: Description of the palette (e.g. 'love, robots, batman').
- Number of colors to generate: Number of colors to generate (if 0 - generate all colors).
- AI model to use: AI model to use.
Now available:
GPT3Dot5Turbo,GPT4oMini,GPT4o,O1Mini,GPT4Turbo,GPT4, - Enable advanced mode?: Enable advanced mode.
- Include transparency?: Include transparency in the colors (only asked if advanced mode is enabled).
- Directory to save palettes to: Directory to save the palette.
- Palette name: Name of the palette.
- Select file type: File type of the palette (gpl, png).
- Select save variant: Save variant (Save as preset, Save as file, Both).
- Sprite filename: Path to the Aseprite file to export • Auto-complete suggests files from configured sprite folders • Validates file existence and extension (.ase, .aseprite)
- Output format: Select export format • Options: Available Aseprite export formats (png, json, gif, etc.)
- Output path: Destination path for exported file • Auto-complete suggests filename based on input file + format • Validates non-overwrite and valid extension
- Configure scaling/sizing options?: Yes/No to configure resizing • Default: Yes
- Resize mode (only if Yes to previous): • Options: scaled (scale multipliers), sized (exact dimensions)
- Enter scales (if scaled mode chosen): • Comma-separated numbers (e.g., "1,2,3") • Auto-suggests common presets like "0.5,1,2" • Validates numeric format
OR
- Enter sizes (if sized mode chosen): • Comma-separated WxH pairs (e.g., "64x64,128x128") • Auto-suggests common presets like "64x64" • Validates WxH format
- Features
- Palette creating with OpenAI API
- Assets creation
- Assets listing with open possibility
- Exporting assets (multiple sizes in one time (with scale))
- Support for opening multiple files at once (currently only one file can be opened at a time)
- Support for assets management (removing, creating, renaming, copying)
- ~ Add integration with aseprite cli for better and easier (with less steps and tui) interaction
- Add support for palletes importing (maybe)
- More documentation
- Add deployment to winget and brew


