Linux command
vhs 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Record terminal
vhs [script.tape]
Create new tape
vhs new [script.tape]
Validate tape
vhs validate [script.tape]
Output to specific format
vhs [script.tape] --output [demo.gif]
Record with theme
vhs [script.tape] --theme [Dracula]
说明
vhs creates terminal recordings as GIFs, WebM, or MP4 files from declarative script files called tapes. Tape files define a sequence of actions such as typing text, pressing keys, and waiting, producing reproducible recordings that can be regenerated consistently. The tool renders a virtual terminal and captures frames, so recordings look clean regardless of the actual terminal environment. Themes, font sizes, and window dimensions are configurable within the tape file. This makes VHS ideal for creating documentation demos, README GIFs, and tutorial content.
参数
- new _FILE_
- Create tape file.
- validate _FILE_
- Check tape syntax.
- --output _FILE_
- Output file.
- --theme _NAME_
- Terminal theme.
- --shell _SHELL_
- Shell to use.
FAQ
What is the vhs command used for?
vhs creates terminal recordings as GIFs, WebM, or MP4 files from declarative script files called tapes. Tape files define a sequence of actions such as typing text, pressing keys, and waiting, producing reproducible recordings that can be regenerated consistently. The tool renders a virtual terminal and captures frames, so recordings look clean regardless of the actual terminal environment. Themes, font sizes, and window dimensions are configurable within the tape file. This makes VHS ideal for creating documentation demos, README GIFs, and tutorial content.
How do I run a basic vhs example?
Run `vhs [script.tape]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does new _FILE_ do in vhs?
Create tape file.