Operations

Environment

Environment variables used by server, CLI, SDK, adapters, and fixture commands.

VariableUsed byDefaultNotes
DATABASE_URLServer, CLI startnoneRequired for direct server startup. When unset, CLI start uses Docker Postgres.
PORTDirect server startup7373CLI start uses --port; direct startServer() reads PORT.
ISPLAY_ARTIFACTS_DIRServer.isplay/artifactsRoot for JSON artifact payload files.
ISPLAY_API_URLCLI, API client, SDK, adaptershttp://127.0.0.1:7373Export it in every shell or process that talks to the API.
ISPLAY_PROJECT_IDCLI, SDK getClient()noneUsed when --project is omitted or getClient() lazy-initializes.
USERCLI fixturesOS userStored as fixture author by fixtures add.
export ISPLAY_API_URL=http://127.0.0.1:7373
export ISPLAY_PROJECT_ID=project_...
export DATABASE_URL=postgres://...
export PORT=7373
export ISPLAY_ARTIFACTS_DIR=/var/lib/isplay/artifacts

Debugging

npx isplay doctor
npx isplay health

If the CLI works in one terminal but not another, compare ISPLAY_API_URL and ISPLAY_PROJECT_ID.

On this page