Quickstart

From an empty folder to a game that is listed on this store. Every command below was run against a real Velox stack; the output shown is what you should see (ids and times differ).

You need Node 20 or newer (or Bun), and a browser.

1. Install the CLI #

The @velox packages come from the Velox registry; everything else still comes from npmjs. The scope is readable without a token.

npm install --global does not read a .npmrc that lives in a project folder (there is no project yet, and a global install ignores it). Put the scope in your user-level npm configuration once:

npm config set @velox:registry https://registry.codai.app
npm install --global @velox/cli
velox --version

Or skip the global install and run the CLI on demand, with the scope given on the command line:

npx --registry https://registry.codai.app @velox/cli --help

For a game project that depends on @velox/sdk, a project file works as usual:

# .npmrc  (npm, pnpm, yarn), in the project folder
@velox:registry=https://registry.codai.app
# bunfig.toml  (Bun)
[install.scopes]
"@velox" = "https://registry.codai.app"

2. Write a game that runs locally #

velox init writes a small working game: a page, a script that uses the SDK for a cloud save, an achievement and a leaderboard, the manifest, and a README with the next commands.

velox init my-game
cd my-game
velox dev

Open the address velox dev prints (http://127.0.0.1:5173/). The game says it is running locally: outside the Velox player the SDK uses its local emulator, so saves, achievements and scores work but nothing is stored on a server. velox dev serves the folder with the same cross-origin isolation headers the player's CDN sends.

Check what a push will check, without a network:

velox verify .

3. Get developer access #

Publishing needs developer access. Sign in to the store and open Studio (/en/studio on https://velox.games): if your account is not a developer yet, that page is the application form; once you have access it lists your games. What happens after you apply depends on how this store is run, see Becoming a developer.

4. Create an API token #

The API tokens panel is at the bottom of Studio and only exists once your developer access is approved (before that, Studio shows the application and no token page). Give the token a name and copy the secret (it is shown once). Then log the CLI in; the token goes in through standard input so it never lands in your shell history.

echo "$TOKEN" | velox login --url https://velox.games --token-stdin
velox whoami

5. Push the game #

These are the commands velox init printed, in order:

velox push . --game my-game --create --branch default

--create makes the game from velox.json (as a draft: nobody but you can see it). The push verifies the build, uploads only the pieces the CDN does not have, registers the build, makes the store's achievements and leaderboards equal to the ones in velox.json, and puts the build on the default branch, which is what players get (promoting to default goes live at once). It prints the build id.

To push first and promote later, leave --branch default out and run velox promote --game my-game --build <build-id> --branch default.

6. List it #

A game is listed when its visibility is Listed. Add its store page assets first (optional: a game without art gets a typographic cover), review the text, then list it. A game can be listed once it has a build on its default (or demo) branch.

velox media upload art/capsule.png --slot capsule --game my-game
velox visibility listed --game my-game

Everything here can also be done in Studio (open the game, then Store page, Media and the visibility setting).

On https://velox.games the store page is /en/g/my-game and the player is /en/play/my-game (the pattern is /<language>/g/<slug> and /<language>/play/<slug>). Press Play on the store page: the SDK now connects to the player, and the game's save, achievement and score are stored on the server for the signed-in player. See How the player connects.

What next #