Skip to main content

Overview

The GAIA CLI provides commands for setup, running, logs, health checks, and shutdown.

All Commands


gaia init

Complete first-time setup.
Options:
The wizard walks through:
  1. Prerequisites (Git and Docker; Mise only for developer mode)
  2. Port conflict checks and alternatives
  3. Repository setup
  4. Environment setup (manual or Infisical)
  5. Project setup

gaia setup

Configure an existing GAIA repository.
Use this when you need to reconfigure environment variables, change setup mode, or refresh setup.

gaia start

Start GAIA services in self-host mode.
Options:
In developer mode, use gaia dev or gaia dev full instead of gaia start.

gaia dev

Run developer mode in Nx TUI (foreground).
Equivalent underlying command: mise dev

gaia dev full

Run developer mode + workers in Nx TUI (foreground).
Equivalent underlying command: mise dev:full

gaia logs

Stream logs for currently running services.
  • Self-host mode: streams Docker service logs.
  • Developer mode: streams Docker logs and, when available, app logs.

gaia stop

Stop running GAIA services.
Options:
By default, gaia stop runs in safe mode and only targets GAIA-managed processes.

gaia status

Check health and latency of GAIA services.

Port Conflict Handling

If required ports are in use, the CLI:
  1. Detects the conflicting process
  2. Suggests alternative ports
  3. Writes overrides to infra/docker/.env
Overrides persist across restarts and are reused by gaia start, gaia logs, and gaia status.

Upgrading

Updating GAIA

Updating the CLI


Uninstalling

  1. Stop all services: gaia stop
  2. Delete the repository directory
  3. Remove CLI metadata: rm -rf ~/.gaia
  4. Uninstall CLI:

Troubleshooting

Reinstall globally and open a new terminal session:
The CLI requires an interactive terminal. Don’t run it in a non-TTY context.
Install Python through Mise: