cli-demo-gif
Original:🇺🇸 English
Translated
Generate CLI demo GIFs using vhs (Charmbracelet). Use when creating terminal recordings for README files or documentation.
2installs
Sourceb-open-io/prompts
Added on
NPX Install
npx skill4agent add b-open-io/prompts cli-demo-gifTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →CLI Demo GIF Generator
Create polished terminal demo GIFs using vhs.
Prerequisites
bash
brew install vhsUsage
1. Create tape file
Place in to keep root clean:
docs/demo/bash
mkdir -p docs/demo2. Tape file structure
tape
# 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 2s3. For unpublished CLI packages
Use Hide/Show to set up aliases silently before the visible demo:
tape
# 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 2s4. Generate GIF
bash
vhs docs/demo/cli.tapeTape Commands Reference
| Command | Description |
|---|---|
| Output file path (.gif, .mp4, .webm) |
| Shell to use |
| Font size (16 recommended) |
| Terminal width in pixels |
| Terminal height in pixels |
| Padding around terminal |
| Color theme |
| Delay between keystrokes |
| Type text |
| Press enter |
| Wait (e.g., 2s, 500ms) |
| Stop recording |
| Resume recording |
| Send interrupt |
Recommended Themes
- - dark, modern
Catppuccin Mocha - - dark purple
Dracula - - dark blue
Tokyo Night - - dark
One Dark - - GitHub's dark theme
GitHub Dark
Tips
- Keep GIFs under 1MB for fast loading
- Use generously so viewers can read output
Sleep - 50ms typing speed looks natural
- 900x500 works well for most CLIs
- Show 3-5 commands max per GIF