Skip to content

Configuration ​

Choose the file by who owns the value. All are JavaScript modules at schema version 1; review imported code before running a conductor.

FileOwner, GitReference
~/.bakers/connections/default.js, connections/<id>.jsYou; privateConnection
.bakers/connection.config.jsProject; optionalConnection
~/.bakers/machine.config.jsWorker owner; privateMachine
.bakers/project.config.js, project.<name>.config.jsMaintainers; committedProject
WORKFLOW.mdMaintainers; committedWorkflows

BAKERS_HOME relocates ~/.bakers. Commands: CLI reference.

How files interact ​

No file overlays another.

  • Connection: --config, --connection, BAKERS_CONFIG, BAKERS_CONNECTION, then defaults; the first match wins (selection).
  • Project: one file is evaluated; a variant is complete, never an overlay.
  • Addons: machine entries precede project entries. Same package and alias combine; machine with wins. The machine executor beats the project's; explicit slots beat addons (contracts).
  • Slot keys: the machine's agents and runtime blocks set keys for every addon of the slot; a project value applies only for keys in the machine's allow (slot keys).
  • Permissions (deprecated block): harness default, project, machine, harness entry, key by key (shared settings).
  • Agents: machine catalog and routes; labels can override (precedence).

Example ​

js
// @bakers-schema-version 1
// ~/.bakers/machine.config.js
export default {
  schema_version: 1,
  machine_id: '0b6f3c1e-9a2d-4e57-8c41-2f7d9e5a1b30',
  label: 'worker-one',
  addons: ['@bakers-build/addon-codex'],
};
js
// @bakers-schema-version 1
// .bakers/project.config.js
export default {
  schema_version: 1,
  project: { name: 'demo', workspace: 'Engineering' },
  addons: ['@bakers-build/addon-herdr'],
};

Validate and upgrade ​

sh
bakers config check --scope all --online
bakers config upgrade --scope all --dry-run

An old key name fails as an unknown key, and an old file name is not read; rename them by hand. See Update bakers.build.