Commandline tool for manipulating PICO-8 files
Download for Windows · Download for Mac · Download for Linux · Changelog
picoknife can perform various actions on PICO-8 files (.p8 source files, .p8.png cartridges, exported .html players).
This is useful for scripting release builds, customizing cartridges or the HTML player, fixing mistakes (such as restoring a label image overwritten by Ctrl+7).
The general syntax is: picoknife {command} {input file} [optional args ...]
Commands in the latest version:
- map – export a map image from a
.p8file- use
--halfor--cellsto export a subsection of the map - use
--paletteor--alternateto change the colors - use
--transparentto export one palette color as transparent - use
--scaleto upscale the output
- use
- sheet – export a spritesheet image from a
.p8file- use
--halfor--spritesto export a subsection of the spritesheet --palette,--alternate,--transparent,--scalealso apply here
- use
- sprites – export individual sprite images from a
.p8file- you can specify specific ranges of sprites, such as
1-5,10,20 --palette,--alternate,--transparent,--scalealso apply here
- you can specify specific ranges of sprites, such as
- label – export label image from a
.p8file--palette,--alternate,--transparent,--scalealso apply here
- setlabel – set the label image of a
.p8file,.p8.pngcartridge, or.htmlplayer- use
--fitPaletteto apply PICO-8 colors (otherwise, preserve full color!)
- use
- settitle – set the graphical title text of a
.p8.pngcartridge- use
--subtitleto optionally set a second line of text too
- use
- sethtml – modify an exported PICO-8
.htmlplayer page- use
--titleto set the page's title text - use
--headersto include metadata headers from another file - use switches such as
--backgroundor--dpadto change page colors - use switches such as
--noDpador--noXto hide unused controls
- use
- colorimage – apply 16-color palette to any image file
- use
--paletteor--alternateto change the colors (otherwise, PICO-8 defaults) - use
--fitand--scaleto pre-shrink then upscale the image
- use
- copy – modify or duplicate a
.p8file with specified changes- use
--clearto clear the contents of a section (such as "sfx") - use
--deleteto completely remove a section
- use
- version – show the software version
- help – show help and usage information
- use
help [command name]to see help for a specific command - use
--allto see full help for all commands
- use
For the full output of picoknife help --all, see HELP.txt