Ebi CLI

The desktop CLI installer adds both ebi and shrimply. Run Ebi tools directly with ebi or through shrimply ebi. The standalone ebi binary also supports these tools.

shrimply ebi check scene.ebi
shrimply ebi watch scene.ebi --output preview.png
shrimply ebi render scene.ebi --time 500ms --output frame.png
shrimply ebi video scene.ebi --output animation.mp4

Scripts and interactive sessions

ebi run FILE prints the value of the final expression or an explicit return. An entry with no result prints (). Use ebi run - for standard input, or --json for a structured result.

printf 'let price = 12\nprice * 3\n' | ebi run -
36
ebi repl
> let price = 12
> fn triple(value: Number): Number {
...     return value * 3
... }
> triple(price)
36

In the REPL, press Tab to complete Ebi names, members, and named arguments. Use the arrow keys to edit the line or recall session history. Open blocks and calls continue at the ... prompt. Ctrl-C clears the current input, .reset clears the session's definitions, and Ctrl-D or .exit closes the session. Imports and assets resolve from the current directory for stdin and the REPL, and from the script directory for ebi run FILE. Both subcommands also work under shrimply ebi.

Subcommands

  • lint: parses and type-checks the entry file and its imports, reporting static performance warnings without loading data assets or building frames.
  • check: fully evaluates values, validates visual contracts, and forces native geometry checks.
  • fmt FILE: prints canonical formatted source without evaluating it. Use --check to exit 1 if changes are needed, --write to update in place atomically, or - for stdin. Layout flags: --indent-width 4, --line-width 100, --tabs. Combine lint/check --check-format with --deny-warnings to enforce formatting (code F101).
  • duration: computes exact timeline duration without rendering. Reports forever (with the finite prefix) for explicit indefinite animations.
  • inspect: exports source dependencies, reflected inputs, resolved types and symbols, temporal layout, verification evidence, and diagnostics as JSON.
  • render / video / watch: render a single frame (--time or --frame), export H.264 MP4 video, or watch for filesystem changes and re-render automatically. Video export requires a finite --duration for indefinite scenes.
  • profile: measures preparation and cold/warm frame passes without rasterizing or encoding PNGs.

The desktop installation sends GPU frames to the platform's H.264 encoder with either ebi video or shrimply ebi video. The separately built standalone executable accepts --ffmpeg PATH and streams RGBA to the selected FFmpeg executable.

Reflected input overrides

Pass typed JSON values to reflect(...) inputs with --set. Save this example as scene.ebi.

let seconds = reflect(2)
wait(seconds * 1s)
shrimply ebi check scene.ebi --set scene.ebi::seconds=4

Defaults, flags, and exit codes

  • Defaults: 1920×1080, 30 FPS, and 96 DPI (override with --width, --height, --fps, --dpi).
  • --progress emits phase-local JSON progress on stderr without altering stdout.
  • --warn-operations N and --warn-prepare-ms N adjust warning thresholds (not execution limits).
  • Exit status: 0 for success, 1 for validation/evaluation errors or warnings rejected by --deny-warnings, 2 for invalid arguments.