2015-03-06 11:59:27 +01:00
|
|
|
# asciinema
|
2013-10-03 17:57:40 +02:00
|
|
|
|
2024-01-10 12:13:50 +01:00
|
|
|
[](https://github.com/asciinema/asciinema/actions/workflows/asciinema.yml)
|
2015-08-07 17:04:55 -04:00
|
|
|
[](https://raw.githubusercontent.com/asciinema/asciinema/master/LICENSE)
|
2013-10-03 17:57:40 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
__asciinema__ (aka asciinema CLI or asciinema recorder) is a command-line tool
|
|
|
|
|
for recording terminal sessions.
|
2013-10-03 17:57:40 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
Unlike typical _screen_ recording software, which records visual output of a
|
|
|
|
|
screen into a heavyweight video files (`.mp4`, `.mov`), asciinema recorder runs
|
|
|
|
|
_inside a terminal_, capturing terminal session output into a lightweight
|
|
|
|
|
recording files in the
|
|
|
|
|
[asciicast](https://docs.asciinema.org/manual/asciicast/v2/) format (`.cast`).
|
2015-03-28 17:56:20 +01:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
The recordings can be replayed in a terminal, embedded on a web page with the
|
|
|
|
|
[asciinema player](https://docs.asciinema.org/manual/player/), or published to
|
|
|
|
|
an [asciinema server](https://docs.asciinema.org/manual/server/), such as
|
|
|
|
|
[asciinema.org](https://asciinema.org), for further sharing.
|
2023-10-03 10:06:20 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
[](https://asciinema.org/a/85R4jTtjKVRIYXTcKCNq0vzYH?autoplay=1)
|
2023-10-03 10:06:20 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
Notable features:
|
2023-10-03 10:06:20 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
* [recording](https://docs.asciinema.org/manual/cli/usage/#asciinema-rec-filename)
|
|
|
|
|
and
|
|
|
|
|
[replaying](https://docs.asciinema.org/manual/cli/usage/#asciinema-play-filename)
|
|
|
|
|
of sessions inside a terminal,
|
|
|
|
|
* [light-weight recording
|
|
|
|
|
format](https://docs.asciinema.org/manual/asciicast/v2/), which is highly
|
|
|
|
|
compressible (down to 15% of the original size e.g. with `zstd` or `gzip`),
|
|
|
|
|
* integration with [asciinema
|
|
|
|
|
server](https://docs.asciinema.org/manual/server/), e.g.
|
|
|
|
|
[asciinema.org](https://asciinema.org), for easy recording hosting.
|
2017-11-18 22:09:15 +01:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
Recording is as easy as running this command in your shell:
|
2015-06-23 20:20:22 +02:00
|
|
|
|
2021-10-30 12:45:23 -04:00
|
|
|
```sh
|
2023-12-20 16:36:18 +01:00
|
|
|
asciinema rec demo.cast
|
2017-11-19 18:29:50 +01:00
|
|
|
```
|
2015-03-09 17:05:14 +01:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
Check out the [Getting started
|
|
|
|
|
guide](https://docs.asciinema.org/getting-started/) for installation and usage
|
|
|
|
|
overview.
|
2015-05-24 12:29:58 +02:00
|
|
|
|
2024-01-10 12:09:37 +01:00
|
|
|
## Building
|
|
|
|
|
|
|
|
|
|
Building asciinema from source requires the [Rust](https://www.rust-lang.org/)
|
|
|
|
|
compiler (1.70 or later), and the [Cargo package
|
|
|
|
|
manager](https://doc.rust-lang.org/cargo/). If they are not available via your
|
|
|
|
|
system package manager then use [rustup](https://rustup.rs/).
|
|
|
|
|
|
|
|
|
|
To download the source code, build the asciinema binary, and install it in
|
|
|
|
|
`$HOME/.cargo/bin` run:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
cargo install --git https://github.com/asciinema/asciinema
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Then, ensure `$HOME/.cargo/bin` is in your shell's `$PATH`.
|
|
|
|
|
|
|
|
|
|
Alternatively, you can manually download the source code and build the asciinema
|
|
|
|
|
binary with:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
git clone https://github.com/asciinema/asciinema
|
|
|
|
|
cd asciinema
|
|
|
|
|
cargo build --release
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This produces the binary in _release mode_ (`--release`) at
|
|
|
|
|
`target/release/asciinema`. There are no other build artifacts so you can just
|
|
|
|
|
copy the binary to a directory in your `$PATH`.
|
|
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
2024-01-10 12:11:18 +01:00
|
|
|
This branch contains the next generation asciinema CLI, written in Rust ([about
|
|
|
|
|
the
|
|
|
|
|
rewrite](https://discourse.asciinema.org/t/rust-rewrite-of-the-asciinema-cli/777)).
|
|
|
|
|
It is still in a heavy work-in-progress stage, so if you wish to propose any
|
|
|
|
|
code changes, please first reach out to the team via
|
2024-01-10 12:09:37 +01:00
|
|
|
[forum](https://discourse.asciinema.org/),
|
|
|
|
|
[Matrix](https://matrix.to/#/#asciinema:matrix.org) or
|
|
|
|
|
[IRC](https://web.libera.chat/#asciinema).
|
|
|
|
|
|
|
|
|
|
The previous generation of asciinema CLI, written in Python, can be found in the
|
|
|
|
|
`main` branch.
|
|
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
## Donations
|
2015-05-24 12:29:58 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
Sustainability of asciinema development relies on donations and sponsorships.
|
2015-05-24 12:29:58 +02:00
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
Please help the software project you use and love. Become a
|
|
|
|
|
[supporter](https://docs.asciinema.org/donations/#individuals) or a [corporate
|
|
|
|
|
sponsor](https://docs.asciinema.org/donations/#corporate-sponsorship).
|
2023-09-19 10:07:32 +02:00
|
|
|
|
|
|
|
|
asciinema is sponsored by:
|
|
|
|
|
|
|
|
|
|
- [Brightbox](https://www.brightbox.com/)
|
|
|
|
|
|
2023-06-20 10:20:48 +02:00
|
|
|
## Consulting
|
|
|
|
|
|
2023-12-20 16:36:18 +01:00
|
|
|
If you're interested in integration or customization of asciinema to suit your
|
|
|
|
|
needs, check [asciinema consulting
|
|
|
|
|
services](https://docs.asciinema.org/consulting/).
|
2013-10-06 12:58:29 +02:00
|
|
|
|
2014-11-15 17:42:04 +01:00
|
|
|
## License
|
2013-10-06 12:58:29 +02:00
|
|
|
|
2023-02-21 17:49:22 +01:00
|
|
|
© 2011 Marcin Kulik.
|
2014-11-15 17:42:04 +01:00
|
|
|
|
2021-10-30 12:45:23 -04:00
|
|
|
All code is licensed under the GPL, v3 or later. See [LICENSE](./LICENSE) file
|
|
|
|
|
for details.
|