tldr/pages/common/asciinema.md

38 lines
1.0 KiB
Markdown
Raw Normal View History

2018-11-12 10:17:37 +00:00
# asciinema
> Record and replay terminal sessions, and optionally share them on <https://asciinema.org>.
> See also: `terminalizer`.
> More information: <https://docs.asciinema.org/manual/cli/usage>.
2018-11-12 10:17:37 +00:00
- Associate the local install of `asciinema` with an asciinema.org account:
`asciinema auth`
- Make a new recording (finish it with `Ctrl+D` or type `exit`, and then choose to upload it or save it locally):
2018-11-12 10:17:37 +00:00
`asciinema rec`
- Make a new recording and save it to a local file:
`asciinema rec {{path/to/recording.cast}}`
2018-11-12 10:17:37 +00:00
- Replay a terminal recording from a local file:
`asciinema play {{path/to/recording.cast}}`
2018-11-12 10:17:37 +00:00
- Replay a terminal recording hosted on <https://asciinema.org>:
2018-11-12 10:17:37 +00:00
`asciinema play https://asciinema.org/a/{{cast_id}}`
- Make a new recording, limiting any [i]dle time to at most 2.5 seconds:
2018-11-12 10:17:37 +00:00
`asciinema rec -i 2.5`
2018-11-12 10:17:37 +00:00
- Print the full output of a locally saved recording:
`asciinema cat {{path/to/recording.cast}}`
2018-11-12 10:17:37 +00:00
- Upload a locally saved terminal session to asciinema.org:
`asciinema upload {{path/to/recording.cast}}`