A standalone CLI tool that programmatically uploads scores to Steam leaderboards using the Steamworks SDK. Reads configuration from an INI file, auto-detects leaderboard metadata, displays the current top 10, and uploads scores with optional confirmation.
- Steam client running and logged into an account that owns the target game
Note
This tool requires the exact leaderboard name to work. You can use steam-leaderboards-finder to retrieve leaderboard names from any Steam game.
mkdir build && cd build
cmake ..
makemkdir build && cd build
cmake ..
cmake --build . --config ReleaseThe build automatically copies the required Steam library (libsteam_api.so or steam_api64.dll) to the output directory.
Create a leaderboards.ini file in the same directory as the executable:
copy and paste the example leaderboards.ini
./steam_leaderboardsThe tool will:
- Read
leaderboards.ini - Initialize Steam API
- For each leaderboard:
- Find the leaderboard and display its metadata
- Show your score and upload method
- Display the current top 10 entries
- Ask for confirmation (unless
auto_confirm = true) - Upload the score and show the result
Looking to do the same thing for games using Unity Gaming Services leaderboards? Check out this script.
