.TH TUX-CHESS 1 "December 2026" "Tux Chess 0.1.0" .SH NAME tux-chess \- play or host chess on your Linux machine .SH SYNOPSIS .B tux-chess .RI command " [options]" .SH COMMANDS .TP .B serve Start the local website on port 8787. Use \fB\-\-lan\fR to make it available to your local network and \fB\-\-port\fR to choose another port. Use \fB\-\-ssh\fR to enable the guest SSH lobby on port 2222. Use \fB\-\-ssh-port\fR to choose a different SSH port. .TP .B play --engine stockfish Play solo offline. Set \fB\-\-level\fR to easy, medium, or hard and \fB\-\-color\fR to white or black. .TP .B create, join, watch Create an invite, join using that invite or a saved room ID, or watch a room. Create accepts \fB\-\-time\fR with untimed, 5+3, or 10+0. .TP .B board ROOM --json Print the room position and current clock values in milliseconds. .TP .B move ROOM MOVE Make a move from a saved seat. Accepts algebraic or coordinate notation. .TP .B handoff ROOM Print a single-use link to move the seat to another client. The link expires in five minutes. .TP .B export ROOM --pgn Write the game in PGN format to standard output. .TP .B replay FILE Replay a PGN using :next and :prev. .TP .B puzzle Solve today's puzzle. Use \fB\-\-print\fR for a login message or a script. .TP .B lichess COMMAND Use the official Lichess integration. Start with \fBlichess login\fR to approve this terminal in a browser. Use \fBlichess games\fR to list current games and challenges or \fBlichess help\fR for commands. Lichess TV and the daily puzzle are available to guests. .SH OPTIONS .TP .B --server URL Use another host or port when supplying a room ID. Full invite URLs include the host. .TP .B --ascii Use letters for pieces. .SH INTERACTIVE COMMANDS Enter moves such as Nf3 or g1f3. Use :flip, :moves, :help, or :quit. Room players also have :resign and :handoff. .SH EXAMPLES .nf tux-chess serve --lan tux-chess play --engine stockfish --level easy --ascii tux-chess create --time 5+3 tux-chess export ROOM --pgn > match.pgn tux-chess puzzle --print --ascii .fi