Files
asciinema/README.md

113 lines
4.0 KiB
Markdown
Raw Normal View History

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
[![Build Status](https://github.com/asciinema/asciinema/actions/workflows/ci.yml/badge.svg)](https://github.com/asciinema/asciinema/actions/workflows/asciinema.yml)
2015-08-07 17:04:55 -04:00
[![license](http://img.shields.io/badge/license-GNU-blue.svg)](https://raw.githubusercontent.com/asciinema/asciinema/master/LICENSE)
2013-10-03 17:57:40 +02: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
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`).
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
[![asciinema CLI
demo](https://asciinema.org/a/85R4jTtjKVRIYXTcKCNq0vzYH.svg)](https://asciinema.org/a/85R4jTtjKVRIYXTcKCNq0vzYH?autoplay=1)
2023-10-03 10:06:20 +02:00
Notable features:
2023-10-03 10:06:20 +02: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
Recording is as easy as running this command in your shell:
2015-06-23 20:20:22 +02:00
```sh
asciinema rec demo.cast
2017-11-19 18:29:50 +01:00
```
2015-03-09 17:05:14 +01:00
Check out the [Getting started
guide](https://docs.asciinema.org/getting-started/) for installation and usage
overview.
## 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-12 11:17:22 +01:00
This branch contains the next generation of the asciinema CLI, written in Rust
([about the
2024-01-10 12:11:18 +01:00
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
[forum](https://discourse.asciinema.org/),
[Matrix](https://matrix.to/#/#asciinema:matrix.org) or
[IRC](https://web.libera.chat/#asciinema).
2024-01-12 11:17:22 +01:00
The previous generation of the asciinema CLI, written in Python, can be found in
the `main` branch.
## Donations
Sustainability of asciinema development relies on donations and sponsorships.
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
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
© 2011 Marcin Kulik.
2014-11-15 17:42:04 +01:00
All code is licensed under the GPL, v3 or later. See [LICENSE](./LICENSE) file
for details.