Rune Games CLI
![GitHub Workflow Status (master)](https://img.shields.io/github/workflow/status/rune/rune-games-cli/CI/master)
Test your HTML5 game inside a mock Rune app to ensure your game works with the Rune SDK.
Install
yarn global add rune-games-cli
npm install -g rune-games-cli
Here's download links for the yarn and npm package managers in case you don't already have one installed.
Use
Test your game
cd game/path && rune start
rune start game/path
rune start https://game-url.com
You should see something like
╭──────────────────────────────────────────────────────────────────────────╮
│ │
│ Test locally: http://localhost:3000 │
│ Test on your phone: http://192.168.50.252:3000 (same network only) │
│ Game: /my-games/my-game-1 │
│ │
│ Press `q` to exit Rune CLI v1.1.0 │
│ │
╰──────────────────────────────────────────────────────────────────────────╯
When you open this URL you should see your game running inside a mock Rune app.
Press the ⚙️ icon to open the developer tools. There you can e.g. change the game
challenge number.
![](https://user-images.githubusercontent.com/7106681/166223386-1d04ba1d-bde7-40c8-a94b-b4d12b13249b.png)
Upload your game
cd game/path && rune upload
rune upload game/path
This command will log you in using your email (if it's the first time) and then guide you through the game upload process.
See your games
rune list