1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:22:08 +02:00
tldr/pages/common/vhs.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

690 B

vhs

Generate terminal gifs from a tape file. More information: https://github.com/charmbracelet/vhs.

  • Create a tape file (add commands to the tape file using an editor):

vhs new {{path/to/file.tape}}

  • Record inputs to a tape file (once done, exit the shell to create the tape):

vhs record > {{path/to/file.tape}}

  • Record inputs to a tape file using a specific shell:

vhs record --shell {{shell}} > {{path/to/file.tape}}

  • Validate the syntax of a tape file:

vhs validate {{path/to/file.tape}}

  • Create a gif from a tape file:

vhs < {{path/to/file.tape}}

vhs publish {{path/to/file.gif}}