Record terminal session and upload it to asciinema.org site.
.PP
This is the single most important command in \fIasciinema\fP, since it is how you utilize this tool's main job.
.PP
By running \fIasciinema\fP rec you start a new recording session. The command (process) that is recorded can be specified with \fI-c\fP option (see below), and defaults to \fB$SHELL\fP which is what you want in most cases.
.PP
Recording finishes when you exit the shell (hit \fBCtrl+D\fP or type \fIexit\fP). If the recorded process is not a shell than recording finishes when the process exits.
.PP
\fBASCIINEMA_REC=1\fP is added to recorded process environment variables. This can be used by your shell's config file (\fI.bashrc\fP, \fI.zshrc\fP) to alter the prompt or play a sound when shell is being recorded.
This command replays given asciicast (as recorded by \fIrec\fP command) directly in your terminal.
.PP
NOTE: it is recommended to run it in a terminal of dimensions not smaller than the one used for recording as there's no "transcoding" of control sequences for new terminal size.
.RS4
.TP
\-w, \-\-max\-wait
reduce replayed terminal inactivity to maximum of seconds (0 turns off)
.RE
.PP
.Bupload<filename>
.RS4
Upload recorded asciicast to asciinema.org site.
.PP
This command uploads given asciicast (as recorded by \fIrec\fP command) to asciinema.org for further playback in a web browser.