Files
oam/knowledge base/asciinema.md

1.3 KiB

Asciinema

Terminal session recorder.

Table of contents

  1. TL;DR
  2. Further readings

TL;DR

# Installation.
sudo apt-get install asciinema
brew install 'asciinema'
sudo dnf install 'asciinema'
sudo pacman -S 'asciinema'
python3 -m 'pip' install --user 'asciinema'

# Record sessions locally.
asciinema rec 'path/to/file.cast'
asciinema rec -i '2' 'path/to/file.cast' -t 'title' --overwrite -c 'command'
asciinema rec --idle-time-limit '2' 'path/to/file.cast' --title 'title' --overwrite --cols '120' --command 'fish -l'


# Record sessions *and* upload them to the website.
asciinema rec

# Play local sessions.
asciinema play 'path/to/file.cast'

# Share local recordings on the website.
asciinema upload 'path/to/file.cast'
asciinema rec -i '2' 'demo.cast' -t 'demo' --overwrite -c 'make demo' \
&& agg --cols '160' --rows '24' --speed '1.25' --renderer 'resvg' --no-loop 'demo.cast' 'demo.gif' --theme 'solarized-dark'

Further readings