HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

vhs — Generate terminal GIFs from a tape file. More information: <https://github.com/charmbracelet/vhs>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
terminalcommandtapefromvhscligifsgenerate

Problem

How to use the vhs command: Generate terminal GIFs from a tape file. More information: <https://github.com/charmbracelet/vhs>.

Solution

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:
vhs record > {{path/to/file.tape}}


Record inputs to a tape file using a specific shell:
vhs record {{[-s|--shell]}} {{shell}} > {{path/to/file.tape}}


Stop recording:
exit


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}}


Publish a GIF to <https://vhs.charm.sh> and get a shareable URL:
vhs publish {{path/to/file.gif}}

Code Snippets

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

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

Record inputs to a tape file using a specific shell

vhs record {{[-s|--shell]}} {{shell}} > {{path/to/file.tape}}

Stop recording

exit

Validate the syntax of a tape file

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

Context

tldr-pages: common/vhs

Revisions (0)

No revisions yet.