| Crates.io | lictl |
| lib.rs | lictl |
| version | 0.2.1 |
| created_at | 2025-04-19 23:54:16.338347+00 |
| updated_at | 2025-05-02 08:50:12.299292+00 |
| description | A command line interface for scripting Lichess |
| homepage | https://github.com/ddaws/lictl |
| repository | https://github.com/ddaws/lictl |
| max_upload_size | |
| id | 1641229 |
| size | 81,262 |
A command-line interface for interacting with Lichess.org's API to make it easy to script your way around Lichess.
cargo install lictl
Before using commands that require authentication, you'll need to log into Lichess:
lictl login
# Verify your authentication
lictl whoami
# Get broadcast details by ID
lictl broadcasts get --by-id <broadcast-id>
# Get broadcast details by round ID
lictl broadcasts get --by-round <round-id>
# Export broadcast PGN
lictl broadcasts export <broadcast-id>
# Get broadcast round details
lictl broadcast-rounds get <round-id>
# Import PGN into a study
lictl studies import <study-id> "<pgn-content>"
# Make GET requests to any Lichess API endpoint
lictl req get /account
lictl req get /broadcast page=2 nb=10
The project includes helpful scripts in the scripts/ directory:
Copies a broadcast's games into a study:
./scripts/copy-broadcast-to-study.sh <round-id> <study-id>
# Run tests
cargo test
# Build in debug mode
cargo build
# Build in release mode
cargo build --release