@assetopt/cli
Command-line tool to optimize images, CSS, JS and SVG assets — open source, MIT.
🌐 Landing page & live demo → — overview, before/after gallery, and a downloadable demo pack to try assetopt yourself.
Install
npm install -g @assetopt/cli
npm install --save-dev @assetopt/cli
Quick start
assetopt init
assetopt analyze ./public
assetopt optimize ./public
Commands
assetopt optimize [dir] | Optimize and write results to output.dir |
assetopt analyze [dir] | Dry-run: report savings without writing files |
assetopt audit [dir] | Flag problematic assets (oversized, optimization potential) |
assetopt init | Create a default .assetoptrc |
assetopt clean | Remove the cache (or the whole output dir with --all) |
Run assetopt <command> --help to see every flag and option.
Documentation
For workflows, configuration reference, and the full feature catalog, see the project repository:
For the programmatic API, see @assetopt/core.
License
MIT.