CLI reference

velox is a client of the live store's developer API and its CDN. It runs on Node 20 or newer and on Bun.

npm config set @velox:registry https://registry.codai.app   # once, user level (a project .npmrc is not read by a global install)
npm install --global @velox/cli
velox --version
velox --help

Settings #

Where velox takes the store and your token from, first match wins: the flags --url and --token, the environment (VELOX_URL, VELOX_TOKEN), the file velox login wrote (~/.config/velox/config.json, readable only by you). The game defaults to VELOX_GAME when --game is not given.

FlagWhat it does
--url <store>the store (or VELOX_URL)
--token <t>the API token (or VELOX_TOKEN); wins over the environment, which wins over the stored one
--game <slug>the game (or VELOX_GAME)
--jsonprint one JSON document instead of text
--lang en|delanguage of the messages
--quietno progress lines

Output is for people; --json prints one JSON document for scripts. Exit codes: 0 done, 1 refused or failed (the server's error code and message are printed), 2 usage or configuration.

Commands #

velox init

write a minimal working game: index.html, a small game on the SDK, velox.json and a README with the next commands.

velox init [dir] [--slug <slug>] [--title <title>] [--force]
FlagWhat it does
--slug <slug>the game's URL name (default: from the folder name)
--title <title>the game's title (default: from the slug)
--forceoverwrite files that are already there

velox dev

serve the folder on your machine with the player's isolation headers (cross-origin isolation); the SDK runs its local emulator, nothing is stored.

velox dev [dir] [--port 5173]
FlagWhat it does
--port <n>port to listen on (default 5173; the next free one when it is taken)
--host <h>address to listen on (default 127.0.0.1)
--oncestart, print the address and stop (for scripts)

velox login

save your API token (create one in the developer portal).

velox login --url <store> [--token-stdin | --token <t>]
FlagWhat it does
--url <store>the store's address
--token-stdinread the token from standard input (keeps it out of your shell history)
--token <t>the token itself (visible in your shell history)
--no-verifysave without asking the store whether the token works

velox version

print the installed version of the CLI.

velox version
velox --version
velox -v

velox logout

forget the stored token.

velox logout

velox whoami

who the token acts as, and the server's discovery document.

velox whoami

velox games

list your games.

velox games [--all]
FlagWhat it does
--allevery game of the store (admins)

velox builds

registered builds and what each branch serves.

velox builds --game <slug>

velox branches

branches with their history.

velox branches --game <slug>

velox audit

the audit trail.

velox audit --game <slug> [--limit 50]
FlagWhat it does
--limit <n>how many entries (default 50)

velox media

upload, list or delete the store page's images and trailer (the store checks type, size and dimensions and says what is wrong).

velox media upload <file> --slot capsule|capsuleTall|hero|icon|screenshot|trailer --game <slug> [--alt-en <t>] [--alt-de <t>]
velox media list --game <slug>
velox media delete <sha> --game <slug>
FlagWhat it does
--slot <s>capsule, capsuleTall, hero, icon, screenshot or trailer (screenshots are added; the others are replaced)
--alt-en <t> --alt-de <t>alternative text for screen readers

velox page

read or change the store page's text, tags, languages and inputs, from velox.json and/or flags (the same texts as Studio).

velox page get --game <slug>
velox page set --game <slug> [--manifest velox.json] [--title-en <t>] [--tagline-en <t>] [--description-en <t>] [--tags a,b] [--locales en,de] [--inputs keyboard,touch] [--engine <e>] [--age-rating 12:usk]
FlagWhat it does
--age-rating <minAge[:system]>the age rating: 0, 6, 12, 16 or 18, optionally with where it comes from (usk, pegi, iarc, self; default self), e.g. 12:usk
--manifest <file>take title, tagline, description, tags, supportedLocales, inputs, engine, multiplayer and ageRating from a velox.json
--title-en/--title-de <t>the title, per language (also --tagline-* and --description-*)
--tags <a,b>store tags (up to 20)
--locales <en,de>the languages of the game's own screens
--inputs <list>keyboard, mouse, gamepad, touch
--engine <e>custom, unity or <engine>-<version>

velox visibility

who can see the game: draft (only you), unlisted (anyone with the link), listed (in the store; needs a build on the default or demo branch and an age rating).

velox visibility <draft|unlisted|listed> --game <slug>

velox verify

local pre-flight checks (no network).

velox verify <dir> [--jam] [--local-servers]
FlagWhat it does
--jamcheck as a game jam submission (the SDK handshake is then mandatory)
--local-serversaccept servers in velox.json that point at localhost (testing against a local dev stack; the store refuses them in production)

velox push

verify, upload what the CDN lacks, register the build, sync the achievements and leaderboards of velox.json, optionally promote.

velox push <dir> --game <slug> [--depot main] [--version v] [--branch default] [--create] [--notes-en .. --notes-de ..] [--local-servers]
FlagWhat it does
--game <slug>the game (default: the slug in velox.json)
--createcreate the game from velox.json when the store does not know it (as a draft)
--branch <b>promote the build to this branch afterwards (default branch: live at once)
--depot <d>depot to publish into (default main)
--version <v>override the version of velox.json
--build-id <id>name the build yourself (default: derived from its content)
--notes-en <t> --notes-de <t>patch notes, both languages together
--jamcheck as a game jam submission
--local-serversaccept servers in velox.json that point at localhost (testing against a local dev stack; the store refuses them in production)

velox promote

put a registered build on a branch (promoting to default goes live at once).

velox promote --game <slug> --build <id> --branch <b> [--depot d]
FlagWhat it does
--build <id>the build to promote
--branch <b>the target branch
--depot <d>the build's depot (default main)
--notes-en <t> --notes-de <t>patch notes, both languages together

velox rollback

put the previous build back on a branch (goes live at once).

velox rollback --game <slug> --branch <b> [--to <build>]
FlagWhat it does
--to <build>roll back to this build instead of the previous one

velox keys

mint, list or revoke access keys (revoking is irreversible).

velox keys mint --game <slug> [--count 5] [--kind press|creator|playtest] [--tier owned|playtest|beta] [--branch b] [--note n] [--expires <iso>]
velox keys list --game <slug>
velox keys revoke <code|keyId> --game <slug>
FlagWhat it does
--count <n>how many keys to mint
--kind <k>press, creator or playtest
--tier <t>owned, playtest or beta
--note <n>a note for yourself
--expires <iso>expiry date
--max-redemptions <n>how many accounts may redeem one key

velox mcp

how to run the MCP server for AI agents.

velox mcp

velox badge

print the HTML and Markdown that put the official "Available on Velox" badge on your site, linked to your game's page (nothing is sent).

velox badge --game <slug> [--lang en|de] [--theme light|dark] [--text available|play]
FlagWhat it does
--lang en|dethe badge's language and the page it links to (default en)
--theme light|darkthe light badge for light pages, the dark one for dark pages (default light)
--text available|play"Available on Velox" (default) or "Play on Velox" (English only)

Examples #

velox init my-game --title "My Game"
velox verify ./my-game --lang de
velox push ./my-game --game my-game --create --branch default
velox keys mint --game my-game --count 5 --kind press
velox rollback --game my-game --branch default