@puzzmo/cli
v1.0.84
Published
Command-line tool for Puzzmo game developers. Authenticate, upload game builds, and create new game projects.
Readme
@puzzmo/cli
Command-line tool for Puzzmo game developers. Authenticate, upload game builds, and create new game projects.
Install
npm install -g @puzzmo/cliCommands
puzzmo login <token>
Save a CLI auth token. Generate one from studio.puzzmo.com.
puzzmo login pzt-your-token-herepuzzmo games upload <dir>
Upload a game build directory to Puzzmo. The game slug is read from puzzmo.json in the build directory.
puzzmo games upload dist/The command collects all files in the directory, validates the puzzmo.json, computes a SHA from git (or file contents), and uploads them in batches.
puzzmo games validate [dir]
Validate every puzzmo.json under dir (defaults to the current directory) against the schema, without uploading anything.
puzzmo games validateThe older
puzzmo uploadandpuzzmo validate(withoutgames) still work as aliases, but thepuzzmo games …forms are preferred.
puzzmo puzzles upload <path> --game <slug>
Add puzzle files to the end of a game's puzzle pool. path is a single file or a directory of them. The daily scheduler takes files in filename order, so name them to sort in the order they should run.
puzzmo puzzles upload puzzles/october --game my-game
puzzmo puzzles upload puzzles/october --game my-game --dry-runEvery file is validated before any are uploaded; --dry-run stops after validation. Files are sent in batches of at most 100 files and ~900KB.
puzzmo game create [token]
Interactive wizard to create a new Puzzmo game project.
puzzmo game create --name my-game --url https://example.com/game/Options:
| Option | Description |
| ----------------- | --------------------------------------------------------- |
| [token] | Optional access token (runs puzzmo login automatically) |
| --name <name> | Game name |
| --url <url> | Source URL to import |
| --agent <agent> | LLM agent: claude, codex, gemini, none |
The wizard:
- Downloads the source HTML page and assets
- Detects installed LLM coding agents
- Installs migration skills via the Vercel skills ecosystem
- Runs each skill through the selected agent with build verification
- Commits after each successful step
Configuration
Config is stored in ~/.puzzmo/config.json, one entry per server:
{
"tokens": [{ "source": "api.puzzmo.com", "token": "pzt-..." }]
}Tokens can also come from the environment, which replaces the config file entirely:
| Variable | Description |
| ----------------------- | ---------------------------------------------------------------------------------------- |
| PUZZMO_TOKEN | A team access token |
| PUZZMO_TOKEN_<NAME> | Additional tokens, so one environment can cover several teams (e.g. PUZZMO_TOKEN_ACME) |
| PUZZMO_API_URL | Server those tokens belong to (defaults to https://api.puzzmo.com) |
| PUZZMO_API_URL_<NAME> | Server for PUZZMO_TOKEN_<NAME> specifically |
<NAME> is only a label — each token states its own team, and the CLI picks the token whose team matches the game's puzzmo.json.
Also available via
yarn create puzzmo gameThis uses the create-puzzmo package which forwards to puzzmo game create.
