CLI options

OptionShortDescription
--help-hShow help (short form; --help prints the long form)
--version-VShow version info and exit
--print-pForce print mode (direct stdout)
--plain-PSterile output: no highlighting, pretty-printing, or colors
--raw-rOutput verbatim source (no pretty-print)
--theme-tSyntax highlighting theme — see Themes
--color-COutput color encoding (truecolor / 256 / 16 / grayscale / plain; default truecolor) — see Color modes
--language-LForce syntax language
--width-wImage rendering width in characters (0 = auto-fit, capped at 2048; default 0)
--image-mode-mImage render mode (full / block / geo / ascii / contour; default full)
--backgroundImage transparency background (auto / black / white / checkerboard, alias checker; default auto)
--marginImage margin in transparent pixels (default 0)
--cell-aspectOverride terminal cell aspect ratio (height ÷ width)
--edge-densityTune contour line count (image-mode contour; default 0.1)
--no-svg-animForce static render for animated SVG
--info-iPrint file info and exit
--jsonEmit --info as JSON for pipelines (requires --info)
--list-lPrint container TOC to stdout (archives, ISOs, directories, PDF / EPUB / DOCX / ODT / RTF / audio / comic embeds)
--utcShow timestamps in UTC (default: local + offset)
--line-numbers-nEnable line numbers (toggle with l in the viewer)
--extract-xExtract a single inner item — see Extraction
-o / --outputOutput path for --extract (or - for stdout)
--extract-sizeOutput pixel size for animation / SVG frame extract
--no-tempfileKeep archive extracts in RAM (skip the $TMPDIR spool path)
--yes-yPre-grant slow ops: skip the load prompt for big compressed files
--updateCheck for newer release and re-run install.sh

Notes

  • --plain is the single "sterile output" knob: implies --color plain and additionally disables syntax highlighting and structured pretty-printing. HTML and SVG drop their rendered / rasterized view and fall back to raw source; other rich views (image, PDF, DOCX, EPUB) still compose but render without color. Use it when piping into tools that expect bytes-as-typed.
  • --raw is narrower: it skips pretty-printing of structured / SVG sources but keeps colors, font styles, and rich renders. Pair --raw --color plain if you want raw structure without colors but still want HTML / SVG rendered.
  • --print / -p forces print mode regardless of TTY.
  • --json (with --info) prints the info screen as a single JSON object for shell pipelines — peek file.pdf --info --json | jq .size_bytes. Core metadata is typed (numbers stay numbers, timestamps are ISO-8601 UTC); per-type stats are nested under a key named for the file type (peek book.pdf --info --json | jq .pdf.page_count).
  • --yes / -y pre-grants slow operations. A big transparently-compressed file (.gz / .xz / .zst / …), or a compressed-tar archive whose table of contents needs a full decompression pass (.tar.gz / .tar.xz / …), opens on its Info screen with an Enter to … hint instead of doing the slow work up front; Enter runs it and unlocks the session (later large files in the same session won't re-ask). Extracting or descending into a large container entry (over 256 MB) likewise asks a yes/no confirm before spooling. --yes skips these prompts, and every non-interactive path (pipe, --print, --info, --list) is always pre-granted since it can't answer a prompt. Independent of the prompts, a hard 8 GiB ceiling on the tempfile-spill path makes a decompression bomb fail cleanly instead of filling $TMPDIR.
  • --help --theme <name> doubles as a theme preview — the help screen is themed.

Help screens

  • -h (concise) — gradient logo, version + tagline, usage line, common options.
  • --help (full) — everything in -h, plus rarely-used options (theme, color, language, width, image-mode, background, margin, utc) and the full theme listing with the active marker.

Both are custom-themed — not the default clap output.