Skip to content

Using the CLI

Configuration

Keys, environment variables, and where Catalyst keeps its state on your machine.

Three things configure the CLI: the key you connect with, the environment variables you set, and the files it writes. The repository side of configuration, the settings file, has its own page: The settings file.

The default is keyless. catalyst login opens a device-code flow, prints a short code and a URL, and connects you as yourself once you approve in the browser. Nothing to mint or paste. A keyless session’s short-lived token refreshes silently on every request.

A personal key works instead, three ways:

Terminal window
catalyst login --key <personal-key>
catalyst status --key <personal-key>
CATALYST_CLOUD_TOKEN=<personal-key> catalyst status

The login is written to ~/.config/catalyst-cloud/customer.json (permissions 0600), which also records the cloud you are connected to and the CLI’s own path. The workspace contract is cached beside it, refreshed by the CLI as it ages or with:

Terminal window
catalyst contract --refresh
Variable What it does
CATALYST_CLOUD_TOKEN supplies a key without flags
CATALYST_CLOUD_BASE_URL the cloud origin, when you need something other than the default
CATALYST_HOME where Catalyst’s own files live, instead of ~/catalyst (read by the installer)
CATALYST_DEBUG set to 1 for the CLI’s debug notices
Path What it is
~/.config/catalyst-cloud/customer.json your login session and the connected cloud
~/.config/catalyst-cloud/ the cached contract, and the local replica and event files if you start them
~/.config/catalyst/paths.json the folder choices the installer saved
~/.cache/catalyst CLI cache, including a CLI-managed Node if you install one
~/.local/state/catalyst/logs install and CLI logs

Each machine signs in on its own with catalyst login, and each keeps its own login file. A personal key works on several machines; a keyless session is per machine, per browser approval.