npm install mbtiles
Several commandline tools are included in
bin for manipulating existing
mbcheck [FILE] Check an mbtiles for missing metadata and tiles. mbcompact [FILE] Eliminate duplicate images to reduce mbtiles filesize. mbpipe [COMMAND] [FILE] Pipe each tile to stdin of the specified command and write stdout into the mbtiles file. mbrekey [FILE] Rekey a compacted mbtiles to save space.