Configuration
Choose the file by who owns the value. All are JavaScript modules at schema version 1; review imported code before running a conductor.
| File | Owner, Git | Reference |
|---|---|---|
~/.bakers/connections/default.js, connections/<id>.js | You; private | Connection |
.bakers/connection.config.js | Project; optional | Connection |
~/.bakers/machine.config.js | Worker owner; private | Machine |
.bakers/project.config.js, project.<name>.config.js | Maintainers; committed | Project |
WORKFLOW.md | Maintainers; committed | Workflows |
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
withwins. The machineexecutorbeats the project's; explicit slots beat addons (contracts). - Slot keys: the machine's
agentsandruntimeblocks set keys for every addon of the slot; a project value applies only for keys in the machine'sallow(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-runAn old key name fails as an unknown key, and an old file name is not read; rename them by hand. See Update bakers.build.