Skip to content
SiteEmail

Overview

create-gameface-app is a command-line tool that scaffolds a new Gameface project from a starter template. It downloads the template of your choice, optionally installs its dependencies, and leaves you with a project that is ready to run.

Run the initializer with your package manager of choice and follow the prompts:

Terminal window
npm create gameface-app

With no arguments the CLI is fully interactive and walks you through every step:

  1. Project name - the folder to create the project in.
  2. Template - the framework starter to use.
  3. Confirmation - confirm before the files are written.
  4. Install dependencies - optionally install dependencies right away.

When it finishes, it prints the commands needed to start the development server.

Every prompt can be answered up front with an argument, so you can skip the wizard entirely. The project name is a positional argument - everything else is a flag.

Terminal window
npm create gameface-app my-app -- --template react --default

Any argument you omit falls back to its interactive prompt, so you can mix and match - for example, provide the template but let the CLI ask for the name:

Terminal window
npx create-gameface-app --template react
FlagAliasDescription
--template <name>-tTemplate to scaffold. Skips the template prompt.
--default-dAccept the confirmation and install prompts automatically.
--help-hPrint usage information and exit.

Pass any of the following to --template, or pick one from the interactive menu:

TemplateFramework
gameface-uiGameface UI (recommended)
solidSolidJS
reactReact
preactPreact
vueVue
svelteSvelte

After scaffolding, move into your project and start the dev server:

Terminal window
cd my-app
npm install # skip if dependencies were installed for you
npm run dev