ThrunGames CLI
Upload your game builds from your terminal or from CI, and manage your games, versions and upload tokens.
curl -fsSL https://cli.thrungames.com/install.sh | shInstalls to ~/.local/bin after checking the download's SHA-256. Add -s -- --global after sh to install to /usr/local/bin instead.
Direct downloads
Prefer a binary? Pick your platform, unpack it and put thrungames on your PATH.
- macOS · Apple siliconthrungames_darwin_arm64.tar.gz
- macOS · Intelthrungames_darwin_amd64.tar.gz
- Linux · x86-64thrungames_linux_amd64.tar.gz
- Linux · ARM64thrungames_linux_arm64.tar.gz
- Windows · x86-64thrungames_windows_amd64.zip
- Windows · ARM64thrungames_windows_arm64.zip
Verify a download against checksums.txt.
Get started
Sign in once; every upload then lands as a draft you can preview before staff see it.
Step 1: Sign in
Opens your browser to approve the CLI.
thrungames loginStep 2: Upload a build
Zips the folder and saves it as a draft with a preview link.
thrungames upload distStep 3: Send it to review
Or pass
--submittouploadto do both at once.thrungames versions submit <id>
Optional: game.json
Put it at the root of your folder to skip the flags.
{
"name": "space-dodger",
"version": "1.4.0",
"width": 960,
"height": 600,
"root": "dist",
"exclude": ["*.map"]
}| Field | What it does |
|---|---|
name | The game's slug or id; picks the game when you are logged in. |
version | The version name. --version wins over it; run locally inside a git repository, the CLI falls back to git describe. |
width, height | The game size, 1 to 4096 pixels. |
root | The folder to zip, relative to game.json. |
include, exclude | Lists of file patterns, relative to the folder being zipped. With include, only matching files are uploaded; files matching exclude are always left out. *.map matches at any depth, src/*.ts only from the top, ** spans folders, and a folder name covers everything inside it. Dotfiles, .git and node_modules are never uploaded. |
Upload from CI
Every push or tag can upload a build. CI has no git history to describe, so pass the version or set it in game.json.
thrungames tokens create <game> --name "GitHub Actions" (or on the game's page) and store it as a secret named THRUNGAMES_TOKEN. It can only upload builds for that one game.- uses: infobits-io/thrungames-upload-action@v1
with:
token: ${{ secrets.THRUNGAMES_TOKEN }}
path: dist
version: ${{ github.ref_name }}
submit: ${{ startsWith(github.ref, 'refs/tags/') }}Uninstall
Removes the CLI, its settings and its saved login from this computer. Your games and upload tokens on thrungames.com stay as they are.
thrungames uninstallInstalled with Homebrew? Run brew uninstall thrungames instead.
Updates
The CLI tells you when a new version is out (or use brew upgrade thrungames). Set THRUNGAMES_NO_UPDATE_CHECK=1 to turn the notice off.
thrungames updateAI assistants
Every CLI command is also a tool on the thrungames MCP server, so an assistant can do the same things for you. For Claude Code:
claude mcp add --transport http thrungames https://mcp.thrungames.com