# Initializing Your Game

When you want to set up your project to work with RUN.game, or if you want to make an existing project publish to a new game (like forking a project), run:

```bash
rundot init
```

This command interactively walks you through the initialization process.

{% hint style="success" %}
You can run this command on any HTML5 game project.

You can initialize any project at any time. If you have an existing game you've already been working on, you can initialize it at any time.
{% endhint %}

## Manually initialize with CLI options

You can bypass interactive mode and manually specify everything. To see options:

```bash
rundot init --help
```

## Under the hood

After initialization, a `game.config.prod.json` file is created in your project root that stores your game's configuration:

```json
{
  "gameId": "your-game-id",
  "relativePathToBuildFolder": "./dist",
  "usesPreloader": false
}
```

This makes future deployments easier by storing your game ID and build path.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://series-1.gitbook.io/rundot-docs/v5.15.0/readme/initializing-your-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
