gato is the command line for GatoJS projects. It assembles a new project from the kit, adds and removes kit modules, moves a project to a newer kit version and regenerates the wiring between modules and the core. It is project tooling: it works on files in your repository and never talks to a running application.
The npm package is
gato-cli; the command it installs is gato. The name gato on npm belongs to an unrelated package, so outside a project always run npx gato-cli@latest <command>. npx gato <command> would fetch that other package, unless gato-cli is already installed in the project or globally.Commands
Every command works on the current directory. Run project commands in the project root, the directory that holds
.wa/kit.json. New projects usually start with create-gato-app, which downloads the kit and runs gato create for you.
Install options
- In a project (default)
- Outside a project
- Global install
Every project created by
gato create lists gato-cli in devDependencies, so after npm install the matching CLI is already there:npx gato resolves the local binary first, so inside a project it runs the pinned gato-cli, not the unrelated npm package.gato and npm run wa
Each project also carries the same CLI as a committed bundle, .wa/bin/wa.mjs, wired to the wa script in package.json:
create:
gato createrequires--kit <path>and adds"gato-cli": "^<its version>"to the new project’sdevDependencies.npm run wa -- createrun inside a kit checkout uses that checkout when you omit--kit, and leavesdevDependenciesalone. Inside a project it fails, because a project has nokit/kit.json.
gato update replaces it with the target version’s bundle. Project docs, CI workflows and generated file headers refer to npm run wa -- <command>; either form works.
Requirements
- Node.js 22 or newer (
engines: >=22). The CLI is a single ESM file with its dependencies bundled, so the package has no runtime dependencies. - git.
createandaddlist kit files withgit ls-files,addandlistclone the kit when its source is a URL,updatealways clones it, andupdateneeds the project to be a git repository so its changes can be undone. - npm.
create,add,removeandupdaterunnpm installunless you pass--no-install. - Docker only for
create --setup, which starts the database.
Versioning
gato-cli has its own semantic version, independent of the kit version a project uses. gato --version prints the CLI version; the kit version of a project is kitVersion in .wa/kit.json. A newer CLI can work on a project from an older kit: add and list fetch the kit at the project’s version, and update hands the merge to the CLI bundled with the target kit version.
Output and exit codes
The CLI exits with0 on success and 1 on any error, including an unknown command and an update that left conflicts. Commands the CLI runs (git, npm install, docker compose, npx prisma) write straight to your terminal, so their output appears above the CLI’s own message. The full list of messages is in Exit codes and messages.
Most CLI messages are currently in Polish (usage and a few
create errors are in English). The reference pages quote them verbatim and give the meaning in English.