Getting Started
This guide walks you through everything you need to build and publish your first game on RUN.world: from installation to your first deploy.
Before you build, skim Runtime Environment to see what the platform provides and what isn't allowed inside a game.
Install the RUN.world CLI
The RUN.world CLI is what you'll use to initialize, manage, and deploy your games.
MacOS / Linux
Open a Terminal and run:
curl -fsSL https://github.com/series-ai/rundot-cli-releases/releases/latest/download/install.sh | bashRestart your Terminal after installation so it can find the CLI.
Windows
Open PowerShell and run:
irm https://github.com/series-ai/rundot-cli-releases/releases/latest/download/install.ps1 | iexVerify installation
rundot --helpYou should see a list of available commands. If not, see Troubleshooting.
Create your game project
You have two options: start from a template, or set up a project from scratch.
Option A: Start from a template
Templates make it easy to get started. Pick the one that fits your game:
Unzip the template, open it in your code editor, and install dependencies:
npm installOption B: Build from scratch
If you're an experienced developer and prefer setting up projects manually:
Use relative file paths. When deployed, your game is served from a subdirectory. If you use Vite, add this to
vite.config.js:
{
base: './',
}Build to
./dist. The CLI looks for your build there by default. You can customize the build path if needed.
Initialize your game
From your project's root folder:
rundot initThis walks you through naming and configuring your game for the RUN.world platform. It creates a game.config.prod.json file that stores your game ID and build settings.
See Initializing Your Game for more details and manual options.
Test locally with Playground
Before deploying, run your game locally against the RUN.world playground backend:
npm run devFor the full Vite config, dependency setup, sign-in flow, and multi-player testing instructions, see Testing Locally With Playground.
Deploy to RUN.world
Build and deploy your game:
npm run build
rundot deployYou'll get a private link to share, playable by anyone who has it on web or in the RUN.world app. No one will find the game on the platform until you publish it.
See Deploying Your Game for publishing (making it public), versioning, and advanced options.
Updating the CLI
The CLI will alert you when a new version is available. To update manually:
rundot updateLast updated