Core CLI/CLI Core Commands & Flags
Docs/Core CLI/CLI Core Commands & Flags
CLI Core Commands & Flags
Comprehensive list of command-line flags, options, aspect ratios, and formatting controls.
The imagerry CLI formats, styles, and compresses images locally from your terminal.
Basic Syntax
|bash
# Single image
imagerry -i <input-file> -o <output-file> [options]
# Batch directory or glob
imagerry -i <input-dir> -o <output-dir> [options]
imagerry --batch "<glob>" -o <output-dir> [options]Core Options
| Option | Type | Default | Description |
|---|---|---|---|
-i, --input <path> | string | — | Path to input image file or directory |
-o, --output <path> | string | — | Path to output image file or directory |
-f, --format <format> | string | auto | Target format: png, jpeg, or webp |
-q, --quality <num> | number | 90 | Quality (1-100) for WebP and JPEG |
-p, --preset <name> | string | "default" | Preset name (mesh, gradient, cyberpunk, etc.) |
-b, --batch <glob> | string | — | Batch process multiple files matching a glob pattern |
-c, --concurrency <n> | number | 4 | Parallel workers for batch processing |
--padding <num> | number | — | Direct canvas padding override |
--radius <num> | number | — | Direct inner border radius override |
--shadow <num> | number | — | Direct drop shadow size override |
--bg-color <hex> | string | — | Solid background hex color |
--ratio <ratio> | string | — | Aspect ratio (16:9, 1:1, 4:3, auto) |
--license-key <key> | string | env | Imagerry Pro license key override |
-v, --version | boolean | — | Print CLI engine version (currently v0.2.0-beta) |
-h, --help | boolean | — | Show all commands and options |
👉
Official JSON Schema: https://imagerry.com/schema/config.json
Quick Examples
1. Convert & Style to WebP
|bash
imagerry -i hero.png -o hero.webp -q 85 --preset mesh2. Direct Style Overrides
|bash
imagerry -i app.png -o app.png --preset gradient --padding 48 --radius 203. Batch Process a Folder
|bash
imagerry -i ./screenshots -o ./dist --preset cyberpunk --format webp4. Initialize Project Config
|bash
imagerry init --preset meshFound an issue or typo? Report on GitHub
Imagerry CLI Docs • v0.2.0-beta