Installation
gamecn ships as three self-contained Node bundles on npm. None require a
global install — npx resolves and runs them on demand.
Requirements
- Node 20 or newer. Each CLI has
engines.node: ">=20"in itspackage.json. Older Node versions will fail with a clear error. - A package manager that exposes
npx(npm),bunx(Bun), orpnpm dlx. Any one works.
You don't need to install anything globally. The first npx run downloads
the bundle into your machine's cache and reuses it for subsequent runs.
The three CLIs
gamecn
The main CLI. Adds items to an existing project, prints integration
instructions, and applies --guided source edits.
npx gamecn --helpcreate-gamecn
Scaffolds a new project from a template. Reuses the same install pipeline
under the hood — templates are just registry items with
type: registry:template.
npx create-gamecn my-game --template phaser-endless-runnergamecn-registry
Authoring CLI for registry maintainers. Validates items, builds a deployable static site, and serves it locally for development. See Authoring if you're shipping your own registry.
npx gamecn-registry --helpVerifying the install
After the first npx run, confirm:
npx gamecn --version
# 0.0.1Each bundle is ~250-300 KB, runnable in plain Node, with no transitive
node_modules to manage.