Skip to main content
create-gato-app is the installer for new projects. It downloads the GatoJS kit at a release tag and runs gato create from the gato-cli version it pins, so you do not need a clone of the kit.
You need Node.js 22 or newer and git (gato create lists the kit files with git ls-files). Without --yes, gato create asks for modules, languages, a display name and the first admin’s email.

What it does

1

Checks the arguments and the project name

--help and --version print and exit. Then it parses its own flags, requires a project directory and checks the project name, all before any network request.
2

Checks Node

An unsupported Node (older than 22) stops the command before anything is downloaded, with a hint to switch versions. --skip-install (or --no-install) turns the refusal into a warning, because nothing is installed under that Node. --yes does not bypass the check.
3

Picks the kit version

--kit-version <x.y.z>, or the highest v<x.y.z> tag of webamigos/gatojs from the GitHub tags API. Prerelease and other tags are ignored. With --kit <path> this step and the download are skipped.
4

Downloads the kit

It prints Downloading GatoJS kit v<version>…, fetches the tag’s tarball into a temporary directory and extracts it with the system tar. There is no clone and no git history; the extracted kit gets a throwaway git init and git add so gato create can list its files.
5

Runs gato create

It runs node <gato-cli>/dist/gato.mjs create <dir> <your flags> --kit <kit> with your terminal attached, so prompts and flags work exactly as documented for gato create. The new project gets "gato-cli": "^<that version>" in devDependencies. The exit code is the exit code of gato create.
6

Cleans up

It removes the temporary directory, also when something fails or you press Ctrl+C.

Flags

These flags belong to create-gato-app itself:
x.y.z
Kit version to download (tag v<x.y.z>; a leading v is accepted). Default: the highest v<x.y.z> tag. Cannot be combined with --kit.
path
Use a local kit checkout instead of downloading one, for kit development and CI. The path is resolved against the current directory and passed to gato create as is.
boolean
Write files only: passes --no-install to gato create and turns the Node refusal into a warning. --no-install does the same.
boolean
Print usage and exit.
boolean
Print the create-gato-app version and exit.

Flags passed to gato create

Every other argument goes to gato create unchanged. See gato create for the full reference. --skip-docker is rejected with --skip-docker is not supported yet.

Examples

GitHub token

webamigos/gatojs is public, so create-gato-app works without a token. Anonymous GitHub API requests are rate limited to 60 per hour; a token raises the limit. create-gato-app uses the first token it finds:
  1. GITHUB_TOKEN
  2. GH_TOKEN
  3. gh auth token, when the GitHub CLI is installed and logged in
The token is only sent to api.github.com and is never printed. Without a token the tarball comes from codeload.github.com. When GitHub rejects the token (401), create-gato-app prints GitHub rejected the token (401); retrying without it. and tries once more anonymously. On a 403 or 429 (rate limit), set a token or pass --kit-version, which skips the tag list request.

Project name

The last segment of the directory becomes the project slug: lowercase letters, digits and hyphens, starting with a letter, 2 to 50 characters. create-gato-app checks it before it downloads anything:
The slug also names the database (my_app), the npm package and, with uploads, the S3 bucket. See gato create for how the names are derived.

Errors

create-gato-app prints its own errors to stderr and exits with 1. Errors after the download come from gato create; see Exit codes and messages.

Not yet

This version installs a project; it is not a full wizard yet. Planned improvements are listed in the roadmap.