Command reference
Terminal demo export
Terminal can render a VHS tape you wrote into GIF, MP4, WebM or PNG files. Nothing runs until you have read the script and asked for it. The same flow is available from the Export demo button in Terminal.
ed invoke terminal terminal.demo.prepare --json '{"tapePath":"/Users/me/demo/intro.tape","toolPath":"/opt/homebrew/bin/vhs"}'ed invoke terminal terminal.demo.start --json '{"id":"<review id>"}'ed invoke terminal terminal.demo.statused invoke terminal terminal.demo.cancel --json '{"id":"<review id>"}'ed invoke terminal terminal.demo.save --json '{"id":"<review id>","name":"demo.gif","folder":"/Users/me/Movies"}'ed invoke terminal terminal.demo.discard --json '{"id":"<review id>"}'| Operation | Input | Result |
|---|---|---|
terminal.demo.prepare |
Absolute tapePath and toolPath |
Reads the tape, checks that ttyd, ffmpeg and Chrome or Chromium are installed, and returns phase prepared with the exact script. Nothing runs yet. |
terminal.demo.start |
id of the reviewed plan |
Starts VHS on the reviewed copy and returns rendering. Poll status. |
terminal.demo.status |
Nothing or {} |
The phase, plan, finished media and message. |
terminal.demo.cancel |
id of a running render |
Stops VHS and its child processes, removes partial output, and returns cancelled. |
terminal.demo.save |
id, a media name and an absolute folder |
Copies one finished file into the folder. An existing file is never replaced. |
terminal.demo.discard |
id |
Removes the render folder and returns idle. Cancel a running render first. |
Phases are idle, prepared, rendering, completed, cancelled and
failed. The review ID lasts for the session; a stale ID is refused. Payloads
are limited to 8 KB and tapes to 64 KB of UTF-8.
The tape runs with your account's access, so read the script before you start
it. Edith renders a copy of the reviewed script, so editing the tape afterwards
changes nothing until you prepare it again. Source, Copy, Paste, VHS_ and
ROD_ environment overrides, folder or text outputs and paths outside the
render folder are refused. Use plain output names with one file per video format.