CLI installation

Install jaina-cli globally via npm, verify, and configure.

Requirements

  • Node.js 18 or later
  • npm, pnpm, or yarn

Install

Heads up: jaina-cli is publishing soon and is not yet on npm. Until it ships, use the REST API directly. The commands below are correct for when the package is live.

npm install -g jaina-cli

Or with pnpm / yarn:

pnpm add -g jaina-cli
yarn global add jaina-cli

Verify

jaina --version

Should print the installed version (e.g., jaina-cli v0.2.0).

Configuration

The CLI stores config at ~/.jaina/config.json after jaina login:

{
  "default_project": "my-game",
  "api_url": "https://jaina.dev/api/v1",
  "auth_token": "jn_live_..."
}

You can override any of these with environment variables:

  • JAINA_API_KEY — overrides auth_token
  • JAINA_API_URL — overrides api_url
  • JAINA_DEFAULT_PROJECT — overrides default_project

This is useful for CI: set JAINA_API_KEY from a secret and skip jaina login entirely.

Shell completion

Bash:

jaina completion bash > /etc/bash_completion.d/jaina

Zsh:

jaina completion zsh > "${fpath[1]}/_jaina"

Uninstall

npm uninstall -g jaina-cli
rm -rf ~/.jaina