Docs / README
@kitty-game-composer/cli
Source: cli-npm/README.md
A small npm launcher for the Kitty game composer CLI. The CLI itself is the Python package kitty-game-composer; this package finds it and runs it, so kitty works the same from npm or from pipx. See Get Kitty for every install channel.
Install
Neither package is published yet as of this writing:
kitty-game-composerreturns 404 on PyPI and@kitty-game-composer/clireturns 404 on npm. Until they land, install from source using Get Kitty.
Install the Python CLI first:
pipx install kitty-game-composer
Then use the launcher without installing it, or install it globally:
npx @kitty-game-composer/cli --help
npm i -g @kitty-game-composer/cli
kitty --help
If you installed with pipx you already have a kitty command, and this package is optional. It is for people who prefer npx, or who want kitty managed next to their other npm tools.
How it finds the CLI
- A
kittyonPATHthat is a Python console script (what pip and pipx install). The launcher skips itself, npm shims, and native binaries with the same name, such as the kitty terminal emulator. python -m gamecomposer.cli, tryingKITTY_PYTHON, thenGAMECOMPOSER_PYTHON, thenpython3, thenpython, and using the first one that can import the package.- Otherwise it prints the install command and exits with code
127.
Arguments, standard input and output, and the exit code pass through unchanged. The launcher sets KITTY_NPM_LAUNCHER=1 for the child so a wrapper script that calls it again cannot loop.
It has no dependencies, no install scripts, and makes no network calls. Node.js 18 or newer.
Use
kitty config # validate gamecomposer.yml, print normalized JSON
kitty up # check digests, build the guest on Kiri, open the player
kitty ls --json # every Kiri-managed instance
The full CLI reference is in the user guide.
License
MIT

