Skip to main content

Environment variables

A config key is set in the environment as ARCAVE_<KEY>, with dots replaced by underscores: ARCAVE_LOG_LEVEL feeds log.level. An environment variable beats .arcave/config.yaml and loses to a flag you actually passed.

Which keys a variable reaches​

Every key of the config, whether or not the file carries it: arcave binds each one to its ARCAVE_<KEY> variable at start, so ARCAVE_BACKENDS_CDC_RESTORE_MODE=wipe sets backends.cdc.restore_mode in a project whose file has no backends section at all. A variable naming no config key is ignored.

ARCAVE_SNAPSHOT_BACKEND=cdc arcave -p myapp savepoint create nightly
ARCAVE_CAPTURE_MODE=pause arcave -p myapp savepoint create no-restart

No variable reaches the file arcave init writes — it is a template of the defaults and --name; ARCAVE_LOG_LEVEL and ARCAVE_LOG_FORMAT steer only its own log.

ARCAVE_COMPOSE_PROJECT_NAME​

The compose project savepoint create, savepoint list, savepoint remove, rollback and tools generate-compose act on — the same thing -p/--project-name names, as docker compose ls shows it, and beaten by it. It is not a config key: one directory may hold several compose projects. gc ignores it, since it covers every compose project of a session.

Name the compose project once per shell
export ARCAVE_COMPOSE_PROJECT_NAME=myapp
arcave savepoint create nightly
Two compose projects under one tenant
arcave -p myapp-blue savepoint create nightly
arcave -p myapp-green savepoint create nightly

Both compose projects store under the tenant project.name from the config file, in store roots that differ in their last segment.

ARCAVE_PROJECT_NAME​

The storage tenant project.name, by the rule every config key follows: the segment of the store path that keeps two projects sharing one storage location apart. It names no compose project. Exporting it moves every command that opens the store — the session commands and gc included — to another tenant, where the savepoints taken under the old one are not seen.

ARCAVE_SESSION​

The session a command works in, by id or by name — the same thing --session names, and beaten by it. It is not a config key. Unset, a command works in the current session arcave session set chose, else in baseline. See arcave session.

Work in one session for the rest of the shell
export ARCAVE_SESSION=feat/add-new-table
arcave -p myapp savepoint create step-1

For arcave mcp it pins the server: every tool call given no session works in that session, and session_set and session_unset are refused.

ARCAVE_FORMAT and ARCAVE_PROGRESS​

How a run prints its result and shows its progress — the same things --format and --progress name, and beaten by them. Neither is a config key: they describe one run's output, not the project.

VariableValuesUnset
ARCAVE_FORMATauto, json, textauto: text on a terminal stdout, else JSON
ARCAVE_PROGRESSauto, tty, log, jsonauto: the live tree on a terminal stderr with log.format: text, else log records
JSON results on a terminal, for the rest of the shell
export ARCAVE_FORMAT=json

See Output and exit codes.

ARCAVE_ENCRYPTION_KEY​

The store key, encryption.key: a secret arcave init never writes, read from the environment like every key. A key: in the file is the fallback. See encryption.

Variables that are not arcave's​

DOCKER_HOST and DOCKER_CONTEXT are read by the Docker client when the docker section leaves the matching key empty, which is the default.

DOCKER_TLS_VERIFY and DOCKER_CERT_PATH count only beside a tcp:// DOCKER_HOST, or one with no scheme, which the Docker client reads as tcp://, with no docker.host or docker.context set; a Docker context carries its own TLS settings. DOCKER_TLS_VERIFY, at any non-empty value, brings in DOCKER_CERT_PATH, which acts as docker.cert_path, under the same requirement of all three files, unless docker.cert_path, ca_file, cert_file or key_file is set. Alone, DOCKER_CERT_PATH turns nothing on. Unlike the docker CLI, it has no ~/.docker default, so DOCKER_TLS_VERIFY without it is refused. DOCKER_TLS is not read.

Podman's CONTAINER_HOST is not read: see Connecting to Podman.

ARCAVE_VERSION, ARCAVE_INSTALL_DIR and ARCAVE_BASE_URL belong to the install script, not to the CLI.

Next step​

Output and exit codes — what a command writes, and where.

Tools and expertise for reproducible, production-like environments.
Copyright © 2026 Greenmask, Inc.
Privacy Policy