Skip to main content

CLI Reference

For a smooth development experience use the rune CLI in your terminal.

Install

npm install -g rune

Requires Node.js version 14.17 or above.

Commands

rune create

Creates a new example game using Vite template.

rune create
# or
rune create my-game

Follow the instructions on the terminal to run the game in mock Rune app. The interface is identical to the one described in Simulating Multiplayer.

rune extract-translations

Finds any Rune.t() calls that have not already been added to the json script tag in the <head> of your index.html and adds them as keys for each language with empty strings as values so their translations can be added. This command currently generates translation files for 4 languages:

  • English ("en")
  • Portuguese ("pt")
  • Russian ("ru")
  • Spanish ("es")

This command writes the translations into a script tag in your index.html that will look something like this:

<script id="rune-translation-data" type="application/json">
{
"en": {
"(You)": "",
"tap to play": ""
},
"es": {
"(You)": "",
"tap to play": ""
},
"pt": {
"(You)": "",
"tap to play": ""
},
"ru": {
"(You)": "",
"tap to play": ""
}
}
</script>

You can replace the empty strings with the translated values. Do not change the type or id attributes, as this will prevent Rune from loading your translated strings. See Translating In-Game Text for more information about adding translated text to your game.

rune upload

Uploads your game to Rune for publishing, see Publishing Your Game for more info.

cd my-game && rune upload
# or
rune upload my-game

This command will log you in using your email (if it's the first time) and then guide you through the game upload process. If you want to upload a new version of your game, just run the command again.

rune list

Displays a list of your games on Rune.

rune update-info

Update your game's info such as title, description or game preview.

rune update-members

Update the team for your game (e.g. adding a new team member), see Collaboration for more info.

rune logout

Log out from the CLI.

rune help

Displays help text.