Tool to import a PGN (Portable Game Notation) file into Lichess.com from the clipboard. The program outputs the URL of the imported game so you can request computer analysis for all your games effortlessly, in a few seconds.
- Easily import chess games from other platforms to your Lichess account, game analysis, etc...
- Streamline your workflow for reviewing and analyzing chess games from different sources.
- Docker (version 20.10 or later recommended)
- Lichess account and a Personal API access tokens
Run this command to install the Lichess PGN Importer
(always check scripts before running it! This one is pretty simple and contains comments):
curl -sSL https://raw.githubusercontent.com/jeancsil/lichess/main/install.sh | bashThis script will:
- Check if the necessary executables are installed (
Docker,pbpasteto copy from clipboard) - Pull the Docker image containing the java application.
- Add a symlink to the
lichessexecutable for convenience.
After installation, make sure to set your Lichess API token as an environment variable.
Set your Lichess API token as an environment variable:
export LICHESS_TOKEN=lip_exampleT0kenF0rL1chess123-
Copy a valid PGN (Portable Game Notation) for a chess game to your clipboard. e.g.:
-
Ensure your
LICHESS_TOKENenvironment variable is set as described earlier. -
Run the
lichesscommand:lichess
The application will read the PGN from your clipboard, save it to a temporary file, import it to Lichess, and provide you with the URL of the imported game.
Example output:
Game imported successfully: https://lichess.org/xXxYyYZzZTo uninstall the Lichess PGN Importer, you can use the following command:
curl -sSL https://raw.githubusercontent.com/jeancsil/lichess/main/uninstall.sh | bashThis script will:
- Remove the
lichesscommand from your system - Remove the Docker images used by the application
Alternatively, if you have cloned the repository, you can run:
make uninstall