CLI installation
Install jaina-cli globally via npm, verify, and configure.
Requirements
- Node.js 18 or later
- npm, pnpm, or yarn
Install
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— overridesauth_tokenJAINA_API_URL— overridesapi_urlJAINA_DEFAULT_PROJECT— overridesdefault_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
