Running in CI
# Clean only whitelisted categories, no promptsbekas clean --apply --non-interactive --accept-categories "docker,python,node"
# Or build a signed plan on one machine and apply it on anotherbekas plan --safe-only --save plan.jsonbekas clean --apply --yes-all --non-interactive --plan-file plan.json--non-interactive requires --yes-all or --accept-categories, otherwise bekas exits with code 2.
A ready-made ci-runner profile (no quarantine, safe threshold) is part of the default config:
bekas --profile ci-runner clean --apply --yes-all --non-interactiveExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Invalid plan signature / aborted / generic failure |
| 2 | Invalid flag combination |
| 3 | Another bekas clean --apply is already running |
| 4 | audit --exit-code-above threshold exceeded |
Scheduled audits
Section titled “Scheduled audits”audit --exit-code-above <size> makes bekas cron/CI friendly: it exits with code 4 when the reclaimable total crosses the threshold, so a job step can fail or alert.
# Nightly: notify when >5GB reclaimable, fail the job when >10GBbekas audit --notifybekas audit --exit-code-above 10GB--notify sends a desktop notification (macOS osascript, Linux notify-send) with the reclaimable total; it is best-effort and never fails the run.