Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 986 Bytes

File metadata and controls

34 lines (24 loc) · 986 Bytes

CLI Guide

The Condense CLI provides fast, zero-configuration local file and directory optimization directly from your terminal.

Typical Commands

Batch optimize a directory into an output directory

npx @studioframes/condense optimize ./src -o ./dist -m balanced

Optimize a single image in extreme mode (converts to modern WebP/AVIF)

npx @studioframes/condense optimize photo.png -o out.webp -m extreme

In-place optimization (modifies original files in-place)

npx @studioframes/condense optimize ./public

Launch the standalone Express server microservice

npx @studioframes/condense

For complete flag details, see COMMANDS.md.

Common Options

  • -m, --method: Selects the optimization mode (quality, balanced, or extreme).
  • -o, --output: Sets the destination file or output directory.
  • Input paths can point to an individual file or a directory (which is traversed recursively).