Asciinema

Asciinema is a CLI tool records and share terminal sessions, you can embed asciinema videos into Markdown content with this shortcode.

Syntax

1{{< asciinema [id] >}}

Parameters

id

PositionNameTypeRequiredDefaultSinceExample
#0idstring---

The asciicast ID.

theme

PositionNameTypeRequiredDefaultSinceExample
-themestring----

Theme.

Available options: asciinema, tango, solarized-dark, solarized-light, monokai.

autoplay

PositionNameTypeRequiredDefaultSinceExample
-autoplayboolean-true--

Whether to auto play video.

speed

PositionNameTypeRequiredDefaultSinceExample
-speednumber-1--

Playback speed.

cols

PositionNameTypeRequiredDefaultSinceExample
-colsnumber----

Used to override width (in characters) of the emulated terminal.

rows

PositionNameTypeRequiredDefaultSinceExample
-rowsnumber----

Used to override height (in lines) of the emulated terminal.

Examples

Default Asciinema

Source
1{{< asciinema 573031 >}}
Result

Asciinema with Theme

Source
1{{< asciinema id=573031 theme=solarized-dark >}}
Result

Asciinema with Auto Play

Source
1{{< asciinema id=573031 autoplay=true >}}
Result

Asciinema with Speed

Source
1{{< asciinema id=573031 speed=2.5 >}}
Result

Asciinema with Cols and Rows

Source
1{{< asciinema id=573031 cols=120 rows=20 >}}
Result