CLI Demo GIF Generator
Create polished terminal demo GIFs using vhs.
Prerequisites brew install vhs
Usage 1. Create tape file
Place in docs/demo/ to keep root clean:
mkdir -p docs/demo
- Tape file structure
Description comment
Output docs/demo/demo.gif
Set Shell "bash" Set FontSize 16 Set Width 900 Set Height 500 Set Padding 20 Set Theme "Catppuccin Mocha" Set TypingSpeed 50ms
Commands here
Type "command --help" Enter Sleep 2s
- For unpublished CLI packages
Use Hide/Show to set up aliases silently before the visible demo:
Set up alias without showing it
Hide Type "alias mycli='bun run src/cli/index.ts'" Enter Sleep 500ms Show
Now show the demo with clean commands
Type "mycli --help" Enter Sleep 2s
- Generate GIF vhs docs/demo/cli.tape
Tape Commands Reference
Command Description
Output