Docs / CLI
CLI Reference
Installation
Install megagem from this server — the wheel here is always the exact version the platform runs.
pip
pip install megagem --extra-index-url https://megagem.hrvt.dev/simple/
uv
uv add megagem --index https://megagem.hrvt.dev/simple/
Keeping it up to date: when the engine is updated, run
pip install --upgrade megagem --extra-index-url https://megagem.hrvt.dev/simple/
to pull the latest wheel.
megagem authAuthenticate with the platform. Creates or updates credentials in ~/.config/megagem/credentials.
megagem auth --server https://megagem.example.com
You'll be prompted to go to Account → API tokens, create a token, and paste it.
megagem pushUpload a bot version to the server. Accepts a single .py file, a .zip archive, or a directory (zipped automatically).
# Single file
megagem push main.py --name my-bot
# Directory (zipped automatically — supports helpers, weights, etc.)
megagem push my_bot/ --name my-bot --activate
# Pre-made zip
megagem push my_bot.zip --name my-bot --activate
The --activate flag sets the version as your active bot after validation passes. The command polls for validation and reports the result.
Other commands
megagem whoami— show your current user and servermegagem logout— remove saved credentialsmegagem run ...— run games locally (original engine command)