@zaisma/cli
v0.24.0
Published
Upload and publish browser games on Zaisma from the command line.
Maintainers
Readme
@zaisma/cli
Upload and publish browser games on Zaisma from the command line. No dependencies; Node 18 or newer.
Run it with npx @zaisma/cli <command>, or install it once with npm install -g @zaisma/cli and run zaisma <command>.
Before anything else, zaisma check ./build lists anything in the game Zaisma would refuse or that won't work on Zaisma (threaded engine builds, alert(), forms, servers the game hasn't listed…), each with how to fix it. It needs no key and sends nothing.
- Make an API key at https://zaisma.com/account, under Game developers, and set it:
export ZAISMA_KEY=zsk_… - Make a game:
zaisma new "Sky Hopper" - Upload your build folder (the one with
index.html):zaisma upload ./build --game sky-hopper --patch-notes "First version". Only new or changed files are sent. It runs the check first, and in what it sends (never in your folder) it downloads scripts, styles and fonts the game loads from other sites and unpacks pre-compressed builds (.gz,.br,.unityweb), then says what it changed. Once the scan passes you get a private preview link. - Publish it:
zaisma publish sky-hopper <version_id>, then show it to everyone:zaisma visibility sky-hopper listed
zaisma versions <slug> lists versions and their preview links; zaisma publish with an older version rolls back, and --scheduled-publish-at "2026-11-01T17:00+01:00" publishes later (an ISO time with Z or an offset; zaisma unschedule cancels). Files over 95 MB are sent in parts automatically, up to 500 MB each.
For scripts, CI and AI tools: every command takes --json and prints the API's answer as-is, or its { "error": { code, message, field, fix, retry_after_sec } }. Commands refuse flags and choices they don't take instead of ignoring them, and the exit code says how it went: 0 done (for upload: passed), 1 failed, 2 a wrong command line (nothing was sent), 3 held for a person to look at, 4 rejected, 5 still scanning, 6 the check found something to fix. zaisma help --json lists every command, flag and code.
Found a bug in Zaisma, or missing something? Search the developer forum first with zaisma forum --search "too_big". zaisma forum post --kind bug --title "…" --category mcp --text "…" starts a public topic, and zaisma forum message … sends Zaisma a private one (logs, an unreleased game). zaisma forum lists your topics and messages, zaisma forum <topic_id> shows one with its replies, and zaisma forum reply <topic_id> --text "…" replies (--reopen if a fixed one is back). Posts say an AI wrote them unless you add --by-me. Everything here uses the developer API.
