Command line#
Every command frost has, as frost --help prints it: how to call it, then what it does. Start with your first game for the everyday ones: new, dev, check, test and export.
frost budgetsfrost newfrost addfrost removefrost checkfrost cookfrost projectsfrost testfrost benchfrost runfrost devfrost exportfrost playfrost servefrost mcpfrost blamefrost dapfrost protocolfrost skillsfrost referencefrost changes
frost budgets#
frost budgets [--root DIR] [--native EXPORTED] [--web EXPORTED]
[--scripted-native EXPORTED] [--scripted-web EXPORTED]Measure every budget and compare it to budgets.toml. With --native, the native size budget is measured from a folder written by frost export desktop; with --web, the web download budget from one written by frost export web. The --scripted ones print the size of an exported game with a script beside them, which no budget holds: the empty game's player has no Luau in it, every real game's has
frost new#
frost new NAME [--template TEMPLATE]Start a game: make the folder NAME as a copy of a template, a finished small game to change. Templates: pong (the default), platformer, arena, breaker, shooter, ballast, blank. They are read from the templates folder beside frost, or else from the checkout frost was built in
frost new --list Name every template, one a line: its name, a tab and whatit is, for a program to read. frost new --help says more
frost add#
frost add scene NAME [GAME.toml]
frost add script NAME [GAME.toml]Add a scene or a script to a game: write the file from the engine's stub and name it in the project file's scenes or scripts, every comment kept (left out: game.toml here). NAME is a path from the project file's folder, with or without .toml or .luau. Refused (E0446) when the name is taken, is not a plain path, or is outside the project
frost remove#
frost remove scene NAME [GAME.toml]
frost remove script NAME [GAME.toml]Take back what frost add made: the name leaves the project file and the file is deleted, only while it is still the engine's stub and nothing else names it (E0446 otherwise)
frost check#
frost check [--json] [--costs] [--shots [--write-shots]] GAME.tomlList what is wrong with a game without stepping it: the project file, the scene, the scripts, the pictures and the key names. It runs what loading the game runs, in a game that is thrown away: each script's top level, and on_scene for the scene the game starts in; never a step, and no file is written. One problem a line, as FILE:LINE: MESSAGE. Exit status 1 when the game would not load. --shots then takes the frames the project lists under shots and compares each with its picture in shots/, the most changed first; --write-shots keeps the frames as they are now instead; with --json, the line carries shots ({path, step, outcome} each) and wrote ({path, sha256} of each picture written). Every --json line carries took_ms, the engine's own time for the run in milliseconds: the one field that differs from run to run, so compare two answers without it. --costs then says what the game's files cost a player who downloads them: bytes and bytes with gzip by kind, the five largest, and what could be smaller (a picture written with a palette, a long WAV as Ogg Vorbis), as estimates; nothing is changed. With --json, the line carries it as costs. frost export prints the same at its end
frost cook#
frost cook (GAME.toml | FILE.png | FILE.glb | FILE.gltf) [--profile desktop|web]
[--cache DIR] [--check]Make the game's assets into what a player loads and keep them in the cache, each under the SHA-256 of everything that went into it: a second cook of unchanged files cooks nothing. Pictures (PNG to a texture) and models (glTF to a model, placed, welded, with its materials); other files are read as written. One file alone is cooked and described. The cache is --cache, FROST_CACHE, or the system's folder for caches. --check cooks every file again in an empty cache and requires the same bytes. Every command that loads a game reads its pictures through the same cache; FROST_CACHE=off decodes them
frost projects#
frost projects [DIR] [--json]List the project files at the top of a folder (. when none is named), in the order frost test walks them: each .toml whose scene is a string, with its space (2d when it says none) and how many scenes it lists. With --json, [{file, space, scenes}]; a folder with none is []
frost test#
frost test --unaccept RUN.toml [--json]Undo the last Accept (--write) of a run as far as the engine's copy goes: once the run's project file has its bytes from before that Accept back, put back the game as accepted then (.frost/accepted/NAME.before, one level); after the game's first Accept, take the copy away with the folders that Accept made, to the byte. Refused, changing nothing, when nothing is kept or the project file is not as it was. --json says what it wrote
frost test [--write | --restore] [--against DIR] [--json] [GAME.toml | FOLDER]...Test every game.toml under a folder (left out: this one), and every other project file there that has a replay: load it, play its recorded input for the steps its replay gives and require that checksum of the whole run, and compare its shots with their pictures. One line a game; exit status 1 when one failed. A game with no replay has no recorded run: its line says so, it is counted apart from those that pass, and it fails nothing. One stretch in the middle is played twice, put back from a snapshot in between, and has to go the same way both times. A failed checksum in a folder with changes not yet committed to git is told the first step, value and script line that differ from the committed game. --write writes the checksum and its checkpoints into the project file instead, and keeps the game as accepted in .frost/accepted/NAME: a later failure is told the first step, value and line that differ from it, before git HEAD (--against DIR: kept in DIR). --json prints one line for the whole test: each run's result (state: passed, failed or no_replay, counted as passed, failed and no_replay), length, what it was told against and the first difference as values, for a program to read; for a run that names no step, the stretch it first differs in, why, and whether accepting it is sound, and took_ms, the engine's own time for the whole test (the one field that differs from run to run) --restore asks instead whether the game can be put back to a snapshot: at each checkpoint it takes one, plays on, puts it back and plays again, and fails a game that goes another way (a script keeps state in a local, not in state)
frost test --says PART[@STEP]... [--against REV] [--json] [GAME.toml | FOLDER]...Hold a change to what it said it changes: the game on disk is played beside the game at REV (left out: HEAD) on its recorded input, and must differ from it only in the parts said, each from its step on (parts as world.checksum names them: Transform.x, state:ball.luau, entities). Fails at the first step where another part differs, with the value and the line that wrote it, and at a shot whose picture changed where no part said does. A part said that never differs is a warning. --says is given once a part, or with parts joined by commas. Needs a git repository with changes (E0523, status 2)
frost bench#
frost bench [--steps N] [--warm N] [--draw] [--sound] [--json] [--check]
[GAME.toml | FOLDER]...Measure a game: play its recorded input (for its replay steps, or N, or 600) and print how long a step takes, as the median, the 99th percentile and the worst over the steps: the whole step, each stage of it (input, ui, physics, scripts, animation, events) and the spans inside them; steps a second; the process's memory and the scripts'. The first 30 steps warm up and are not measured (--warm). --draw draws each step off-screen too and adds the renderer's spans, quads and draw calls; --sound mixes each step's sound as --wav does and prints its peak. --json prints one JSON object. --check holds each game to perf.NAME_step_ms and perf.NAME_draw_ms in budgets.toml (NAME is the game's folder), and the exit status is 1 when one is over. The load average is printed: a busy machine's numbers lie
frost run#
frost run --headless --steps N [--shot [STEP=]FILE.png]... [--frames DIR
[--from N] [--to M] [--every K]] [--overlay physics] [--input FILE.toml]
[--reload STEP=FILE.luau] [--sounds] [--wav FILE.wav] [--state]
[--record FILE.jsonl] [--saves DIR] [--size WxH]
[--set tuning.NAME=VALUE]...GAME.toml Run a game for N fixed steps with no window and print the step count and two numbers: world checksum, of the world after the last step (what game.info reports), and run checksum, of every world from the start to there (what a project's replay holds when N is its steps, and frost test --write writes). The lines are steps:, world checksum: and run checksum:, in that order: read one by its name, since options add lines after. GAME.toml is a project file (scene, Luau scripts, components, recorded input) or a bare scene. --shot writes the last frame as PNG, or the frame after step STEP as STEP=FILE.png, and can be given more than once. --frames writes every frame into DIR, or those from step N to step M, every Kth. --overlay physics draws every collider, joint and contact over each picture written: a bare scene whose bodies have no Rect or Sprite is black without it. --input plays the recording in FILE.toml (the recording text that input.history returns) in place of the project's. --reload swaps in the code of the script with that file name just before step STEP. --sounds also prints each sound the game asks for, with its step (nothing is played: a run has no sound output). --wav writes what the run would sound like as a WAV file: 16-bit stereo, 48,000 moments a second, 800 to a step, the same bytes every run; and prints its peak, where 1 is all a machine can play and more is cut off (W0438). --state prints what the scripts keep in state at the end, as one line of JSON after state: , by script. --record writes the session record: JSON lines of the input, events, sounds and reloads of each step, and a checksum every 60 steps, on the game's clock. A run starts from the saves its recording declares (saves beside recording), or none, and writes none; --saves reads them from DIR instead and writes them there. --set runs the game with one number of its [tuning] table changed, and can be given more than once. --size runs the game in a frame of W by H in place of the project's, to see its interface at another shape; a game whose scripts read frame.size() plays its recording differently there (W0456 says so)
frost run --headless (--host [IP:PORT] | --join IP:PORT) --seconds S
[--condition LATENCY_MS,JITTER_MS,LOSS] [--sums FILE] [--shown] GAME.tomlThe same with no window, 60 steps a second by the clock, each player's input its recording: prints the steps played and confirmed, the rollback's counters and how many frames a window would have shown of a world later taken back (with --shown, how many of their pixels differ from the confirmed picture). --sums writes the checksum of every confirmed step, one a line. --condition makes what this peer sends late, uneven and lossy, for a test.
frost dev#
frost dev GAME.toml [--port N] [--exit-after SECONDS]Play the game in a window with the keys the project binds, serve the protocol on 127.0.0.1 (the port is printed; 0, the default, picks a free one), and reload a script the moment its file is saved, keeping the game running. A game whose scripts save keeps its saves in saves/ beside the project
frost dev GAME.toml (--host [IP:PORT] | --join IP:PORT) [--port N]Play the game with other players over the network, by rollback (docs/multiplayer.md): --host waits in its window for the others and prints the address they join with, 127.0.0.1 and a free port unless one is given; --join plays as the next player. The title bar says which player this is and, when the game waits for someone, who and for how long. Closing the window says goodbye: that player's input is at rest from then on, alike on every machine.
frost dev GAME.toml --web [--port N] [--exit-after SECONDS]The same in a browser: export the game for the web, serve it at http://127.0.0.1:PORT/, and send each saved script to the open tabs, which swap it in and keep playing
frost export#
frost export web GAME.toml --out DIR [--recording] [--slim] [--any-engine]Write the folder a static web host serves: the page, the game's files and two builds of the player (WebGPU, WebGL2), and print what each kind of browser downloads. A frost with a players folder beside it (a download) copies the players from there (for a 3D game with physics, the ones with 3D physics) and needs nothing else; --slim builds them instead, with only what the game uses. Without that folder, or with --slim, they are built: that needs a checkout of the engine, Rust, and the Emscripten SDK on PATH. Either way the players must be of the source this frost was built from: when they are not, the export is refused (E0517), since such a player would play another engine than frost run does. --any-engine exports all the same. A recording kept in a file of its own is left out, since players play live input; --recording exports it too. Saves are kept in the browser's localStorage, by the project's id (left out: the folder's name). To hold an export to frost run: export with --recording, serve DIR (frost play DIR) and open /?hold=N. The page plays the recording for N steps, stands still and prints to the console frost_player: holding at step N checksum X, where X is the world checksum of frost run --headless --steps N (the world at that step, not the run's). More options: &backend=gl or &backend=gpu picks the build, &size=WxH the canvas, &mute plays no sound at all (no audio is opened, so a script cannot turn it on: open the page again without it to hear it), and &report=/path POSTs the held frame (a PNG) to that path on the same host, with the printed lines in the header X-Ven-Lines (percent-encoded) and the build in X-Ven-Backend
frost export desktop GAME.toml --out DIR [--recording] [--slim] [--any-engine] [--fetch]Write a folder for this system: the player, named after the game (the project's title, or its folder), and the game's files beside it. Started with no arguments it plays that game. The player comes from where the web ones do. With --recording, DIR/NAME --hold N plays the recording for N steps and prints the same line as the page. Saves are kept in the system's folder for a person's data, by the project's id (left out: the folder's name). A game in C# (a frost with C#) has its scripts compiled ahead of time into one library beside it, with no .NET under it; --fetch lets the one package that needs be fetched when the SDK has it not
frost export ios GAME.toml --out DIR [--device] [--recording] [--any-engine]Write DIR/NAME.app for the iPhone simulator (--device: an iPhone, unsigned): the player, Info.plist and the game's files. Built from a checkout; needs Xcode (E0500) and rustup target add aarch64-apple-ios-sim. Prints the app's id. xcrun simctl launch --console-pty SIM ID --hold N prints the same line as the page. docs/export.md
frost export android GAME.toml --out DIR [--recording] [--any-engine]Write DIR/NAME.apk for arm64 Android 8.0 and later, signed with a debug key: a NativeActivity with no Java, the game in its assets. Built from a checkout; needs the Android SDK and NDK (E0535) and rustup target add aarch64-linux-android. The player prints to adb logcat -s frost_player and takes its arguments from adb shell setprop debug.ven.args.APP_ID "'--hold N'"
frost play#
frost play DIR [--port N] [--exit-after SECONDS]Play a folder frost export web wrote: serve it as it is at http://127.0.0.1:PORT/ (printed; 0, the default, picks a free port) for a browser to open. Only that folder is served, on this machine only; there is no protocol and no reload, and nothing is written
frost serve#
frost serve GAME.toml [--port N [--stdio]] [--join-file PATH [--read-join-file PATH]]
[--saves DIR]Serve the game over the protocol: JSON-RPC 2.0, one object per line, on standard input and output, or with --port on a TCP socket bound to 127.0.0.1 (0 picks a free port). With --stdio too, on both at once, for any number of clients of the port; the address is then printed on standard error. With --saves the game's saves are kept in DIR, and a game.reset is one more launch from it; without, they end with the session. --join-file serves both (port 0 unless --port says) and writes PATH, for this user alone, with the address and token before it says it listens; it is removed when the session ends. --read-join-file writes another with the read-only token: an agent that joins by it changes nothing in the game (E0447) until the editor's session.mode lets its hand. The editor's session.token {tag} writes PATH.handN, a join file for one hand alone: whoever joins by it is that hand, and writes or only reads as session.mode last set it
frost mcp#
frost mcp GAME.toml [--saves DIR]Serve the game to an AI agent: the Model Context Protocol on standard input and output, the same commands as tools
frost mcp (--join-file PATH | --join 127.0.0.1:PORT --token-file PATH) [--who NAME]
[--tag TAG] [--mode plan|ask|trial|free]The same tools for the game a running session plays (an editor's frost serve --port 0 --stdio, or frost dev): the agent and the person act on one game, and every write the agent makes names it (session.hello: --who, or the MCP client's own name). --join-file reads the file frost serve --join-file writes, waiting up to ten seconds for it, so the agent's arguments are the same at every start of the game; with --join, PATH holds the token the session printed. --tag (or FROST_HAND_TAG) is the editor's own name for the agent's task, kept with its hand. --mode is the editor's mode for it: in plan the session refuses all it asks but reads (E0447). When the session ends this says so (E0522) and exits
Generated from Coldwave 0.0.1 r289, 2026-11-30 by the binary itself: do not edit by hand.