asciinema [as-kee-nuh-muh] is a free and open source solution for recording terminal sessions and sharing them on the web.
To learn about asciinema, you can visit asciinema.org.
And this project is a cross-platform version of asciinema writtern in go with full features. You can use it to create, edit, upload, convert(to gif animation) an asciinema cast on MacOS/Linux/Windows.
Installation
Recommanded: Install acast using version managervm.
vm use asciinema@v0.3.9
Install acast using go.
go install github.com/gvcgo/asciinema/cmd/acast@latest