GameKit CLI#

In this guide, we explore the functions of the included CLI.

Project Initialization#

See the getting-started on project initialization.

Compiling a Project#

Compiling a GameKit project rebuilds your project's gamekit directory, recreating the Vite runtime of the project.

You generally do not need to explicitly use the compile command. It is used internally by other commands.

gamekit compile

Running a Project#

Running a project launches a persistent development server which updates your game in the browser as you develop it.

# Explicit invocation
gamekit run

# Via package manager scripts
yarn dev
# or
npm run dev

Building a Project#

This builds the static production assets needed to deploy your application.

The built files reside in the gamekit/runtime/dist/web directory.

# Explicit invocation
gamekit build

# Via package manager scripts
yarn build
# or
npm run build